/* ========================================
   PPE DESIGN - ICON WEBSITE
   Premium Industrial Design
   ======================================== */

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    max-width: 600px;
    width: 90%;
    opacity: 0;
    animation: pulse 1.5s ease-in-out infinite;
    transition: opacity 0.5s ease;
    filter: brightness(1);
}

.preloader-logo.fade-in {
    opacity: 1;
}

.preloader-logo.fade-out {
    opacity: 0;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(0.9);
    }
}

/* ===== ROOT VARIABLES ===== */
:root {
    --color-black: #000000;
    --color-anthracite: #2a2a2a;
    --color-dark-grey: #3a3a3a;
    --color-grey: #666666;
    --color-light-grey: #cccccc;
    --color-white: #ffffff;
    --color-accent: #f5f5f5;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition-speed: 0.3s;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-white);
    color: var(--color-anthracite);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-speed) ease;
}

a:hover {
    opacity: 0.7;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-black);
    border-bottom: 1px solid var(--color-dark-grey);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-white);
    text-decoration: none;
}

.nav-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform var(--transition-speed) ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-anthracite);
    min-width: 200px;
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--color-dark-grey);
    margin-top: 1rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-white);
    font-size: 0.9rem;
    transition: background-color var(--transition-speed) ease;
}

.nav-dropdown-menu a:hover {
    background-color: var(--color-dark-grey);
    opacity: 1;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-speed) ease;
}

/* ===== MAIN CONTENT ===== */
main {
    margin-top: 80px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    background-color: transparent;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    opacity: 1;
}

.btn-dark {
    border-color: var(--color-black);
    color: var(--color-black);
}

.btn-dark:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* ===== IMAGE GALLERY ===== */
/* Product Gallery Container */
.product-gallery-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.image-gallery {
    position: relative;
    flex: 1;
    width: 100%;
    height: 500px;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.gallery-image.active {
    opacity: 1;
    z-index: 1;
}

.gallery-nav {
    display: none; /* Thumbnails replace dots */
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background-color: var(--color-black);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
    opacity: 0; /* Hidden but functional */
    pointer-events: auto; /* Clickable */
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-arrow.prev {
    left: 1rem;
}

.gallery-arrow.next {
    right: 1rem;
}

/* Thumbnail Gallery - Vertical on Left */
.gallery-thumbnails-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 500px;
    flex-shrink: 0;
    overflow: hidden;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
    
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumbnail-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--color-black);
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-arrow:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateX(-50%) scale(1.1);
}

.thumbnail-arrow-up {
    top: 5px;
}

.thumbnail-arrow-down {
    bottom: 5px;
}

.gallery-thumbnails-wrapper:hover .thumbnail-arrow {
    opacity: 1;
    visibility: visible;
}

.gallery-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    border-radius: 2px;
    background-color: #f5f5f5;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--color-black);
}

@media (max-width: 768px) {
    .product-gallery-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-thumbnails-wrapper {
        flex-direction: row;
        position: relative;
        height: auto;
        order: 2; /* Place thumbnails below main gallery */
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-thumbnails {
        flex-direction: row;
        height: auto;
        max-height: none;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail-arrow {
        display: none; /* Hide arrows on mobile */
    }
    
    .gallery-thumbnail {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .image-gallery {
        order: 1; /* Place main gallery above thumbnails */
        width: 100%;
        max-width: 100%;
        height: 400px;
        min-height: 400px;
        background-color: #ffffff; /* White background */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-image {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Show complete image */
    }
    
    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-arrow.prev {
        left: 0.5rem;
    }
    
    .gallery-arrow.next {
        right: 0.5rem;
    }
    
    .product-hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .product-gallery-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-grey {
    background-color: var(--color-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-grey);
    font-weight: 300;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-grey);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin: var(--spacing-md) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
}

.product-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-anthracite);
    margin: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    flex-grow: 1;
}

.product-card .btn {
    margin: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    align-self: center;
}

.product-image {
    width: 100%;
    height: 300px;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-md);
}

.product-name {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.product-claim {
    font-size: 1rem;
    color: var(--color-grey);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-anthracite);
    margin-bottom: var(--spacing-md);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.product-hero-image {
    width: 100%;
    height: 600px;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-hero-name {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.product-hero-claim {
    font-size: 1.3rem;
    color: var(--color-grey);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.product-specs {
    margin-top: var(--spacing-lg);
}

.spec-item {
    margin-bottom: var(--spacing-md);
}

.spec-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--color-grey);
    margin-bottom: var(--spacing-xs);
}

.spec-value {
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== INFO BLOCKS ===== */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.info-block {
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-light-grey);
}

.info-block-title {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.info-block-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-grey);
}

.info-block-content ul {
    list-style-position: inside;
    margin-top: var(--spacing-sm);
}

.info-block-content li {
    margin-bottom: var(--spacing-xs);
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--color-grey);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: var(--color-light-grey);
    line-height: 1.8;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-dark-grey);
    color: var(--color-grey);
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-hero-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-black);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed) ease;
        border-bottom: 1px solid var(--color-dark-grey);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    /* Hide "Produkte" toggle on mobile */
    .nav-dropdown-toggle {
        display: none;
    }
    
    /* Show dropdown items directly as normal menu items */
    .nav-dropdown-menu {
        position: static;
        max-height: none;
        opacity: 1;
        visibility: visible;
        overflow: visible;
        transform: none;
        margin-top: 0;
        margin-bottom: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        display: block;
        padding: 0;
    }
    
    .nav-dropdown-menu li {
        width: 100%;
        padding: 0;
    }
    
    .nav-dropdown-menu a {
        color: var(--color-white);
        padding: 0.75rem 0;
        display: block;
        text-align: center;
        font-weight: 500;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    
    .nav-dropdown-menu a:hover {
        background: transparent;
        color: var(--color-grey);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
    }
    
    .product-hero-name {
        font-size: 2rem;
    }
    
    .info-blocks {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
        height: 70px;
    }
    
    main {
        margin-top: 70px;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
}

/* Fullscreen Gallery */
.gallery-fullscreen-btn {
    position: absolute !important;
    display: block !important;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.gallery-fullscreen-btn:active {
    background-color: rgba(0, 0, 0, 1);
    transform: scale(0.95);
}

.gallery-fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.gallery-fullscreen-overlay.active {
    display: flex;
}

.gallery-fullscreen-content {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 2rem;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-x;
}

.gallery-fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: none;
}

.gallery-fullscreen-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gallery-fullscreen-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.gallery-fullscreen-close:active {
    background-color: rgba(255, 255, 255, 0.4);
}

.gallery-fullscreen-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: none;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gallery-fullscreen-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.gallery-fullscreen-arrow:active {
    background-color: rgba(255, 255, 255, 0.4);
}

.gallery-fullscreen-arrow.prev {
    left: 1.5rem;
}

.gallery-fullscreen-arrow.next {
    right: 1.5rem;
}

/* Fullscreen Thumbnail Strip */
.gallery-fullscreen-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    flex-shrink: 0;
    max-height: 130px;
}

.gallery-fullscreen-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-fullscreen-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-fullscreen-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gallery-fullscreen-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gallery-fullscreen-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-fullscreen-thumbnail:active {
    opacity: 1;
}

.gallery-fullscreen-thumbnail.active {
    opacity: 1;
    border-color: var(--color-white);
}

@media (max-width: 768px) {
    .gallery-fullscreen-content {
        padding: 3.5rem 1rem 1rem;
    }
    
    .gallery-fullscreen-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }
    
    .gallery-fullscreen-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    .gallery-fullscreen-arrow.prev {
        left: 0.5rem;
    }
    
    .gallery-fullscreen-arrow.next {
        right: 0.5rem;
    }
    
    .gallery-fullscreen-thumbnails {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
        max-height: 100px;
    }
    
    .gallery-fullscreen-thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-fullscreen-content {
        padding: 3rem 0.5rem 0.5rem;
    }
    
    .gallery-fullscreen-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .gallery-fullscreen-thumbnails {
        padding: 0.75rem 0.5rem;
        gap: 0.375rem;
        max-height: 85px;
    }
    
    .gallery-fullscreen-thumbnail {
        width: 50px;
        height: 50px;
    }
}
