/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    line-height: 1.5;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Fix for older browsers that don't support smooth scroll */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Header Navigation Styles */
.main-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 500;
    display: block;
    visibility: visible;
}

.header-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    min-height: 60px;
    visibility: visible;
    position: relative;
}

.logo-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: transform 0.3s ease, opacity 0.3s ease;
    -o-transition: transform 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    opacity: 0.9;
}

.site-logo {
    height: 100px;
    width: auto;
    -o-object-fit: contain;
    object-fit: contain;
    display: block;
    max-width: 100%;
    visibility: visible;
}


/* Navigation Menu */
.main-nav {
    background-color: #000000;
    position: relative;
    min-height: 50px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.nav-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 24px;
    color: #ffffff !important; /* Force white text */
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
    -o-transition: background-color 0.3s ease, color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    background-color: transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 20px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff !important;
    margin: 5px 0;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.menu-toggle.active span:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(8px, 8px);
    -ms-transform: rotate(45deg) translate(8px, 8px);
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(7px, -7px);
    -ms-transform: rotate(-45deg) translate(7px, -7px);
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Core Gallery Styles */
.gallery-container {
    position: relative;
    min-height: 50vh; /* Reduced from 100vh for better mobile compatibility */
    padding: 2rem;
    background-color: #ffffff;
    max-width: 100%;
}

/* Image Grid - Larger Thumbnails */
.image-grid {
    display: -ms-grid; /* IE 10-11 */
    display: grid;
    -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr; /* IE 10-11 */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 80px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.image-container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 6px;
}

.image-box {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #ffffff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 12px;
    /* Better iPhone touch response */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1/1) {
    .image-box::before {
        content: '';
        display: block;
        padding-top: 100%;
    }
}

.image-container:hover .image-box {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: center;
    object-position: center;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent image dragging on all browsers */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    display: block;
}

.image-filename {
    text-align: center;
    font-size: 11px;
    color: #999999;
    opacity: 0.7;
    user-select: none;
    font-weight: 500;
    padding: 2px 4px;
}

/* Large Vertical Rectangle Navigation Arrows */
.nav-button {
    position: fixed;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 60px;
    height: 140px;
    border: none;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 5;
    background: -webkit-linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    background: -o-linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    opacity: 0.8;
}

.nav-button:hover {
    background: -webkit-linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    background: -o-linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    -webkit-transform: translateY(-50%) scale(1.05);
    -ms-transform: translateY(-50%) scale(1.05);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.nav-button svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    stroke-width: 3;
    -webkit-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.nav-button:hover svg {
    -webkit-transform: scale(1.15);
    -ms-transform: scale(1.15);
    transform: scale(1.15);
}

.nav-button-left {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.nav-button-right {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-button:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.nav-button:disabled:hover {
    -webkit-transform: translateY(-50%) scale(1);
    -ms-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    opacity: 0.2;
}

/* Page Indicator */
.page-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 10;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* Loading State */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    /* Let the page remain scrollable even if this fails to hide */
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    cursor: zoom-out;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
    /* Prevent scrolling issues on iOS */
    -webkit-overflow-scrolling: touch;
    /* iPhone X+ safe areas */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    /* Prevent iOS bounce */
    overscroll-behavior: contain;
}

.lightbox.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    -o-object-fit: contain;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    cursor: default;
    /* Prevent image selection and dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Smooth loading transition */
    transition: opacity 0.2s ease;
    /* Better image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    -webkit-transition: background-color 0.3s ease, transform 0.3s ease;
    -o-transition: background-color 0.3s ease, transform 0.3s ease;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    /* Better touch target for iPhone */
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.lightbox-close:hover {
    background-color: #fff;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 60px;
    height: 140px;
    background: -webkit-linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    background: -o-linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    border-radius: 8px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
    opacity: 0.8;
}

.lightbox-nav:hover {
    background: -webkit-linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    background: -o-linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    -webkit-transform: translateY(-50%) scale(1.05);
    -ms-transform: translateY(-50%) scale(1.05);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.lightbox-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.lightbox-nav:disabled:hover {
    -webkit-transform: translateY(-50%) scale(1);
    -ms-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    opacity: 0.2;
}

.lightbox-prev {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.lightbox-next {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.lightbox-nav svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    stroke-width: 3;
    -webkit-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.lightbox-nav:hover svg {
    -webkit-transform: scale(1.15);
    -ms-transform: scale(1.15);
    transform: scale(1.15);
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    z-index: 1001;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Lightbox Action Buttons Container */
.lightbox-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1001;
    pointer-events: none;
}

/* WhatsApp Order Button */
.lightbox-whatsapp {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: -webkit-linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    background: -o-linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.lightbox-whatsapp:hover {
    -webkit-transform: scale(1.08);
    -ms-transform: scale(1.08);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.lightbox-whatsapp svg {
    width: 24px;
    height: 24px;
}

.lightbox-whatsapp span {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
}

/* Download Button - Icon Only */
.lightbox-download {
    position: absolute;
    bottom: 30px;
    left: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.lightbox-download:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.lightbox-download .download-icon {
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
    display: block;
    font-weight: bold;
}

.lightbox-download .download-text {
    display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.visible {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 0.7;
}

.scroll-to-top:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    stroke: #000000;
    pointer-events: none;
}

/* Go to First Page Button */
.go-to-first-page {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
}

.go-to-first-page.visible {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 0.7;
}

.go-to-first-page:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.go-to-first-page svg {
    width: 24px;
    height: 24px;
    stroke: #000000;
    stroke-width: 2.5;
    pointer-events: none;
}

/* Download Page as PDF Button */
.download-page-pdf {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
}

.download-page-pdf.visible {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 0.85;
}

.download-page-pdf:hover {
    opacity: 1;
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.download-page-pdf svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    pointer-events: none;
}

.download-page-pdf.generating {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
    -webkit-animation: pulse 1.5s ease-in-out infinite;
    animation: pulse 1.5s ease-in-out infinite;
}

@-webkit-keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* PDF Download Link in Header */
.pdf-download-link {
    display: block !important;
}

.pdf-download-link.generating {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
    -webkit-animation: pulse 1.5s ease-in-out infinite;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Header Responsive Styles */
@media (max-width: 768px) {
    .main-header {
        display: block !important;
        visibility: visible !important;
    }

    .header-top {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        padding: 12px 15px;
        visibility: visible !important;
    }

    .site-logo {
        height: 80px;
        display: block !important;
        visibility: visible !important;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        padding: 0;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000000 !important;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        -webkit-transition: max-height 0.4s ease, box-shadow 0.4s ease;
        -o-transition: max-height 0.4s ease, box-shadow 0.4s ease;
        transition: max-height 0.4s ease, box-shadow 0.4s ease;
        box-shadow: none;
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: 600px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #333333;
        background-color: #000000;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 18px 20px;
        text-align: right;
        color: #ffffff !important;
        background-color: #000000 !important;
        display: block;
        width: 100%;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: #333333 !important;
    }
}

@media (max-width: 600px) {
    .main-header {
        display: block !important;
    }

    .header-top {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        padding: 10px;
    }

    .site-logo {
        height: 70px;
        display: block !important;
    }

    .nav-menu a {
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .header-top {
        padding: 8px 5px;
    }

    .site-logo {
        height: 60px;
    }
}

/* Responsive Layout with Optimized Mobile View */
@media (max-width: 1400px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 85px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 12px 0;
    }

    .site-logo {
        height: 90px;
    }

    /* Gallery */
    .gallery-container {
        padding: 1rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 75px;
        gap: 1.2rem;
    }

    /* Nav Buttons - Mobile Optimized */
    .nav-button {
        width: 50px;
        height: 120px;
        bottom: 120px;
        top: auto;
        border-radius: 8px;
    }

    .nav-button-left {
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .nav-button-right {
        right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .nav-button svg {
        width: 32px;
        height: 32px;
    }

    .nav-button:hover {
        -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
        transform: scale(1.05);
    }

    /* Lightbox */
    .lightbox-nav {
        width: 50px;
        height: 120px;
    }

    .lightbox-prev {
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .lightbox-next {
        right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .lightbox-nav svg {
        width: 32px;
        height: 32px;
    }
    
    .lightbox-actions {
        bottom: 70px;
        gap: 12px;
    }

    .lightbox-whatsapp,
    .lightbox-download {
        padding: 12px 24px;
        font-size: 15px;
    }

    .lightbox-whatsapp svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-download .download-icon {
        font-size: 24px;
    }

    .lightbox-close {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}

/* Removed duplicate 768px media query - merged with main one above */

@media (max-width: 600px) {
    .site-header {
        padding: 10px 0;
    }

    .site-logo {
        height: 80px;
    }

    .gallery-container {
        padding: 0.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 1.5rem;
        width: 100%;
    }

    .image-container {
        width: 100%;
        max-width: none;
    }

    .image-box {
        padding: 10px;
        border-radius: 10px;
    }

    .image-container:hover .image-box {
        -webkit-transform: scale(1.02);
        -ms-transform: scale(1.02);
        transform: scale(1.02);
    }
    
    .image-box img {
        width: 100%;
        height: 100%;
        -o-object-fit: contain;
        object-fit: contain;
        -o-object-position: center;
        object-position: center;
    }

    .nav-button {
        width: 45px;
        height: 110px;
        bottom: 100px;
        top: auto;
    }

    .nav-button-left {
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .nav-button-right {
        right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .nav-button svg {
        width: 28px;
        height: 28px;
    }

    .page-indicator {
        bottom: 15px;
        font-size: 13px;
        padding: 6px 14px;
        background-color: rgba(0, 0, 0, 0.65);
    }

    /* Mobile lightbox optimizations */
    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        padding: 0;
    }

    .lightbox-image {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .lightbox-nav {
        width: 45px;
        height: 110px;
    }

    .lightbox-prev {
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .lightbox-next {
        right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .lightbox-nav svg {
        width: 28px;
        height: 28px;
    }

    .lightbox-counter {
        top: 15px;
        font-size: 11px;
        padding: 5px 12px;
        background-color: rgba(0, 0, 0, 0.12);
    }

    /* Mobile action buttons */
    .lightbox-actions {
        bottom: 60px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }

    .lightbox-whatsapp,
    .lightbox-download {
        padding: 12px 24px;
        font-size: 14px;
        gap: 8px;
    }

    .lightbox-whatsapp:hover,
    .lightbox-download:hover {
        -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
        transform: scale(1.05);
    }

    .lightbox-whatsapp svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-download {
        bottom: 20px;
        left: 15px;
        width: 48px;
        height: 48px;
    }
    
    .lightbox-download .download-icon {
        font-size: 24px;
    }
    
    .lightbox-whatsapp {
        bottom: 20px;
        right: 15px;
    }

    /* Mobile scroll to top - adjusted to not overlap nav button */
    .scroll-to-top {
        bottom: 25px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .go-to-first-page {
        bottom: 75px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
    
    .go-to-first-page svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.5;
    }
}

@media (max-width: 400px) {
    .image-grid {
        padding: 0 5px;
        gap: 1.2rem;
    }

    .nav-button {
        width: 40px;
        height: 100px;
        bottom: 90px;
        top: auto;
    }

    .nav-button-left {
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .nav-button-right {
        right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .nav-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Footer Styles */
.site-footer {
    background: -webkit-linear-gradient(top, #1a1a1a 0%, #000000 100%);
    background: -o-linear-gradient(top, #1a1a1a 0%, #000000 100%);
    background: linear-gradient(to bottom, #1a1a1a 0%, #000000 100%);
    color: #ffffff;
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 40px;
}

/* Keywords Section */
.footer-keywords {
    text-align: center;
    margin-bottom: 20px;
}

.footer-keywords h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-keywords .keywords-text {
    font-size: 14px;
    color: #999999;
    line-height: 1.6;
}

/* Social Media Section */
.footer-social {
    text-align: center;
}

.footer-social h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
}

.social-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    -webkit-transform: translateY(-5px) scale(1.1);
    -ms-transform: translateY(-5px) scale(1.1);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.social-link.instagram:hover {
    background: -webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background: -o-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link.whatsapp:hover {
    background: -webkit-linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    background: -o-linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-link.facebook:hover {
    background-color: #1877F2;
}

.social-link.twitter:hover {
    background-color: #000000;
    border: 1px solid #ffffff;
}

.social-link.tiktok:hover {
    background-color: #000000;
    border: 1px solid #00f2ea;
}

.social-link.snapchat:hover {
    background-color: #FFFC00;
    color: #000000;
}

/* Contact Info Section */
.footer-contact {
    text-align: center;
}

.footer-contact h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 16px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #cccccc;
    text-decoration: underline;
}


/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 30px;
        margin-top: 60px;
    }

    .footer-content {
        gap: 35px;
    }

    .footer-social,
    .footer-contact {
        width: 100%;
    }

    .footer-keywords h3,
    .footer-social h3,
    .footer-contact h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .footer-keywords .keywords-text {
        font-size: 13px;
    }

    .social-links {
        gap: 18px;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .social-link svg {
        width: 24px;
        height: 24px;
    }

    .contact-item {
        font-size: 16px;
        margin: 18px 0;
    }

    .contact-item svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 35px 15px 25px;
        margin-top: 50px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-keywords h3,
    .footer-social h3,
    .footer-contact h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .footer-keywords .keywords-text {
        font-size: 12px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .contact-item {
        font-size: 15px;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin: 15px 0;
    }

    .contact-item svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 400px) {
    .site-footer {
        padding: 30px 10px 20px;
        margin-top: 40px;
    }

    .footer-keywords h3,
    .footer-social h3,
    .footer-contact h3 {
        font-size: 18px;
    }
    
    .footer-keywords .keywords-text {
        font-size: 11px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .contact-item {
        font-size: 14px;
    }
}

/* iPhone X, XS, 11 Pro, 12 Mini, 13 Mini (375px width) */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .lightbox-close {
        top: calc(20px + env(safe-area-inset-top));
    }
    
    .lightbox-whatsapp {
        bottom: calc(30px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
    
    .lightbox-download {
        bottom: calc(30px + env(safe-area-inset-bottom));
        left: calc(20px + env(safe-area-inset-left));
    }
    
    .lightbox-counter {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* iPhone XR, 11, 12, 12 Pro, 13, 13 Pro, 14 (390-393px width) */
@media only screen and (min-device-width: 390px) and (max-device-width: 393px) and (-webkit-device-pixel-ratio: 3) {
    .lightbox-close {
        top: calc(20px + env(safe-area-inset-top));
    }
    
    .lightbox-whatsapp {
        bottom: calc(30px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
    
    .lightbox-download {
        bottom: calc(30px + env(safe-area-inset-bottom));
        left: calc(20px + env(safe-area-inset-left));
    }
}

/* iPhone 14 Plus, 15 Plus (428px width) */
@media only screen and (device-width: 428px) and (-webkit-device-pixel-ratio: 3) {
    .lightbox-close {
        top: calc(20px + env(safe-area-inset-top));
    }
    
    .lightbox-actions {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iPhone 14 Pro Max, 15 Pro Max (430px width) */
@media only screen and (device-width: 430px) and (-webkit-device-pixel-ratio: 3) {
    .lightbox-close {
        top: calc(20px + env(safe-area-inset-top));
    }
}

/* Better tap targets for all touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase all button sizes for touch */
    .nav-button {
        min-width: 48px;
        min-height: 48px;
    }
    
    .lightbox-nav {
        min-width: 48px;
        min-height: 48px;
    }
    
    .lightbox-close {
        min-width: 48px;
        min-height: 48px;
    }
    
    .lightbox-whatsapp,
    .lightbox-download {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Larger tap area for menu items */
    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}
