/**
 * Luxe Gallery Frontend Styles
 * Original hero grid layout with modern enhancements
 */

/* CSS Custom Properties */
:root {
    --luxe-gap: 8px;
    --luxe-radius: 12px;
    --luxe-radius-small: 8px;
    --luxe-transition: all 0.3s ease;
    --luxe-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --luxe-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --luxe-overlay-bg: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    --luxe-caption-color: #ffffff;
    --luxe-caption-bg: rgba(0, 0, 0, 0.8);
    --luxe-button-bg: #ffffff;
    --luxe-button-text: #222222;
    --luxe-accent: #3b82f6;
    --luxe-skeleton-bg: #e5e7eb;
    --luxe-skeleton-shine: #f3f4f6;
}

/* PhotoSwipe Lightbox - Must be above everything */
.pswp {
    z-index: 2000000 !important;
}

/* Body state when modal is open - prevent background scroll and hide theme header */
body.luxe-gallery-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Main Container */
.luxe-gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* Gallery Title */
.luxe-gallery-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.luxe-gallery-title.h1 { font-size: 36px; }
.luxe-gallery-title.h3 { font-size: 24px; }
.luxe-gallery-title.h4 { font-size: 20px; }
.luxe-gallery-title.h5 { font-size: 18px; }
.luxe-gallery-title.h6 { font-size: 16px; }

/* Hero Grid Layout */
.luxe-gallery-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 55vh;
    min-height: 450px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.luxe-gallery-hero-grid .hero-image-item {
    overflow: hidden;
}

.luxe-gallery-hero-grid .hero-image-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Image wrapper - ensures images fill their container */
.luxe-gallery-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
}

.luxe-gallery-image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.luxe-gallery-hero-grid .hero-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.luxe-gallery-hero-grid .hero-image-item a:hover img {
    transform: scale(1.05);
}

/* Grid Item Positions */
.luxe-gallery-hero-grid .item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.luxe-gallery-hero-grid .item-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.luxe-gallery-hero-grid .item-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.luxe-gallery-hero-grid .item-4 { grid-column: 3 / 4; grid-row: 2 / 3; }
.luxe-gallery-hero-grid .item-5 { grid-column: 4 / 5; grid-row: 2 / 3; }

.luxe-gallery-hero-grid .show-all-photos {
    position: absolute;
    bottom: 24px;
    right: 24px;
    padding: 8px 16px;
    background: var(--luxe-button-bg, #fff);
    color: var(--luxe-button-text, #222);
    border: 1px solid var(--luxe-button-text, #222);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--luxe-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.luxe-gallery-hero-grid .show-all-photos svg {
    flex-shrink: 0;
}

.luxe-gallery-hero-grid .show-all-photos:hover {
    transform: scale(1.02);
    box-shadow: var(--luxe-shadow);
}

/* Virtual Tour Button */
.luxe-gallery-virtual-tour-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 8px 16px;
    background: var(--luxe-button-bg, #fff);
    color: var(--luxe-button-text, #222);
    border: 1px solid var(--luxe-button-text, #222);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--luxe-transition);
    z-index: 10;
}

.luxe-gallery-virtual-tour-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--luxe-shadow);
}

.luxe-gallery-virtual-tour-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile Slider */
.luxe-gallery-mobile-slider {
    display: none; /* Hidden by default */
    position: relative;
}

.luxe-gallery-mobile-slider .swiper {
    width: 100%;
    height: 50vh;
    border-radius: 12px;
}

.luxe-gallery-mobile-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luxe-gallery-mobile-slider .show-all-photos-mobile {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #222;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

.luxe-gallery-mobile-slider .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.6;
}

.luxe-gallery-mobile-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #fff;
}

/* Full View Layout - As Modal */
.luxe-gallery-full-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999; /* Very high z-index to be above all theme elements */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 40px 40px 40px; /* No top padding - handled by categories-wrapper */
    box-sizing: border-box;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.luxe-gallery-full-view.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.back-to-grid-view {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.back-to-grid-view:hover {
    background: #e5e5e5;
}

.back-to-grid-view svg {
    color: #333;
}

.luxe-gallery-full-view .luxe-gallery-categories-wrapper {
    margin: 0 auto;
}

.luxe-gallery-category-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    z-index: 1000000; /* Above the modal */
    padding: 16px 40px 16px 70px; /* Left padding for back button */
    box-sizing: border-box;
    display: none; /* Hidden by default */
}

.luxe-gallery-full-view.is-visible .luxe-gallery-category-nav {
    display: block;
}

/* Categories content needs padding to account for fixed nav height */
.luxe-gallery-full-view .luxe-gallery-categories-wrapper {
    padding-top: 140px; /* Space for fixed nav with thumbnails */
}

.luxe-gallery-category-nav.is-sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.luxe-gallery-category-nav ul {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.luxe-gallery-category-nav ul::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.luxe-gallery-category-nav a {
    text-decoration: none;
    color: #777;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    min-width: 110px;
    transition: all 0.2s ease-in-out;
}

.luxe-gallery-category-nav a:hover {
    color: #222;
    transform: translateY(-2px);
}

.luxe-gallery-category-nav a.active {
    color: #222;
    border-bottom-color: #222;
    background-color: transparent;
}

.luxe-gallery-category-nav a:focus {
    outline: none;
    box-shadow: none;
}

.luxe-gallery-category-nav img {
    width: 175px;
    height: 175px;
    border-radius: 8px;
    object-fit: cover;
}

.luxe-gallery-category-nav span {
    font-weight: 600;
    font-size: 16px;
}

.luxe-gallery-category-section {
    scroll-margin-top: 180px; /* Account for fixed nav height */
}

.luxe-gallery-category-section:first-of-type {
    scroll-margin-top: 160px;
}

.luxe-gallery-category-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.luxe-gallery-category-section .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.luxe-gallery-category-section .grid-image-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.luxe-gallery-category-section .grid-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional Gallery Layouts */

/* Standard Grid (for shortcode columns parameter) */
.luxe-gallery-columns-1 .luxe-gallery-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.luxe-gallery-columns-2 .luxe-gallery-hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
}

.luxe-gallery-columns-3 .luxe-gallery-hero-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
}

.luxe-gallery-columns-5 .luxe-gallery-hero-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
}

.luxe-gallery-columns-6 .luxe-gallery-hero-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
}

/* When columns are specified, disable special grid positions */
.luxe-gallery-columns-1 .item-1,
.luxe-gallery-columns-1 .item-2,
.luxe-gallery-columns-1 .item-3,
.luxe-gallery-columns-1 .item-4,
.luxe-gallery-columns-1 .item-5,
.luxe-gallery-columns-2 .item-1,
.luxe-gallery-columns-2 .item-2,
.luxe-gallery-columns-2 .item-3,
.luxe-gallery-columns-2 .item-4,
.luxe-gallery-columns-2 .item-5,
.luxe-gallery-columns-3 .item-1,
.luxe-gallery-columns-3 .item-2,
.luxe-gallery-columns-3 .item-3,
.luxe-gallery-columns-3 .item-4,
.luxe-gallery-columns-3 .item-5,
.luxe-gallery-columns-5 .item-1,
.luxe-gallery-columns-5 .item-2,
.luxe-gallery-columns-5 .item-3,
.luxe-gallery-columns-5 .item-4,
.luxe-gallery-columns-5 .item-5,
.luxe-gallery-columns-6 .item-1,
.luxe-gallery-columns-6 .item-2,
.luxe-gallery-columns-6 .item-3,
.luxe-gallery-columns-6 .item-4,
.luxe-gallery-columns-6 .item-5 {
    grid-column: auto;
    grid-row: auto;
}

/* Gallery Item (for general use) */
.luxe-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--luxe-radius-small);
    background: #f3f4f6;
    transition: var(--luxe-transition);
    cursor: pointer;
}

.luxe-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--luxe-shadow-hover);
}

.luxe-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--luxe-transition);
}

.luxe-gallery-item:hover img {
    transform: scale(1.05);
}

/* Captions */
.luxe-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: var(--luxe-caption-color);
    background: var(--luxe-caption-bg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.4;
}

.luxe-gallery-item:hover .luxe-gallery-caption,
.hero-image-item:hover .luxe-gallery-caption {
    transform: translateY(0);
}

/* Masonry Layout */
.luxe-gallery-masonry {
    column-count: 3;
    column-gap: var(--luxe-gap);
}

.luxe-gallery-masonry .luxe-gallery-item {
    break-inside: avoid;
    margin-bottom: var(--luxe-gap);
    aspect-ratio: auto;
}

/* Justified Layout */
.luxe-gallery-justified {
    display: flex;
    flex-wrap: wrap;
    gap: var(--luxe-gap);
}

.luxe-gallery-justified .luxe-gallery-item {
    flex: 1 1 auto;
    height: 200px;
    min-width: 150px;
    aspect-ratio: auto;
}

/* Skeleton Loading Animation */
.luxe-gallery-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--luxe-skeleton-bg);
}

.luxe-gallery-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--luxe-skeleton-shine),
        transparent
    );
    animation: luxe-skeleton-shimmer 1.5s infinite;
}

@keyframes luxe-skeleton-shimmer {
    100% { left: 100%; }
}

/* Blur-up Image Loading */
.luxe-gallery-blur-up {
    filter: blur(20px);
    transform: scale(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.luxe-gallery-blur-up.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Image Loading Placeholder */
.hero-image-item.is-loading,
.grid-image-item.is-loading {
    background: var(--luxe-skeleton-bg);
    position: relative;
    overflow: hidden;
}

.hero-image-item.is-loading::after,
.grid-image-item.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: luxe-skeleton-shimmer 1.5s infinite;
}

.hero-image-item img.loaded,
.grid-image-item img.loaded {
    opacity: 1;
}

/* Only hide images that use data-src lazy loading (not native loading="lazy") */
.hero-image-item img[data-src]:not(.loaded),
.grid-image-item img[data-src]:not(.loaded) {
    opacity: 0;
}

/* Loading State */
.luxe-gallery-loading {
    position: relative;
    min-height: 400px;
}

.luxe-gallery-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--luxe-skeleton-bg);
    border-top-color: var(--luxe-accent);
    border-radius: 50%;
    animation: luxe-spin 1s linear infinite;
}

@keyframes luxe-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Lightbox Trigger Icon */
.luxe-gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.luxe-gallery-item:hover .luxe-gallery-zoom,
.hero-image-item:hover .luxe-gallery-zoom {
    opacity: 1;
}

.luxe-gallery-zoom svg {
    width: 24px;
    height: 24px;
    fill: #1f2937;
}

/* Wide and Full Alignment Support */
.alignwide .luxe-gallery-container {
    max-width: 1200px;
    margin-inline: auto;
}

.alignfull .luxe-gallery-container {
    max-width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .luxe-gallery-hero-grid {
        display: none;
    }
    
    .luxe-gallery-mobile-slider {
        display: block;
    }
    
    .luxe-gallery-columns-6 .luxe-gallery-hero-grid,
    .luxe-gallery-columns-5 .luxe-gallery-hero-grid,
    .luxe-gallery-columns-4 .luxe-gallery-hero-grid,
    .luxe-gallery-columns-3 .luxe-gallery-hero-grid,
    .luxe-gallery-columns-2 .luxe-gallery-hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .luxe-gallery-masonry {
        column-count: 1;
    }
}

@media (min-width: 1128px) {
    .luxe-gallery-full-view {
        padding-left: 120px;
        padding-right: 120px;
    }
}

/* Tablet Responsive - Modal View */
@media (max-width: 1024px) {
    .luxe-gallery-full-view {
        padding: 0 24px 24px 24px;
    }

    .luxe-gallery-category-nav {
        padding: 12px 24px 12px 60px;
    }

    .back-to-grid-view {
        left: 12px;
        width: 36px;
        height: 36px;
    }

    .luxe-gallery-full-view .luxe-gallery-categories-wrapper {
        padding-top: 120px;
    }

    .luxe-gallery-category-nav a {
        min-width: 100px;
        gap: 8px;
        padding: 6px;
    }

    .luxe-gallery-category-nav img {
        width: 80px;
        height: 80px;
    }

    .luxe-gallery-category-section {
        scroll-margin-top: 130px;
    }
}

/* Mobile Responsive - Modal View */
@media (max-width: 768px) {
    .luxe-gallery-full-view {
        padding: 0 12px 16px 12px;
    }

    .luxe-gallery-category-nav {
        padding: 8px 12px 8px 50px;
    }

    .back-to-grid-view {
        left: 8px;
        width: 32px;
        height: 32px;
    }

    .back-to-grid-view svg {
        width: 16px;
        height: 16px;
    }

    .luxe-gallery-full-view .luxe-gallery-categories-wrapper {
        padding-top: 95px;
    }

    .luxe-gallery-category-nav ul {
        gap: 8px;
    }

    .luxe-gallery-category-nav a {
        min-width: auto;
        gap: 4px;
        padding: 4px;
        font-size: 11px;
    }

    .luxe-gallery-category-nav img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .luxe-gallery-category-nav span {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
    }

    .luxe-gallery-category-section {
        scroll-margin-top: 120px;
    }

    .luxe-gallery-category-section h2 {
        font-size: 18px;
    }

    .luxe-gallery-category-section .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
}

/* Small Mobile Responsive - Modal View */
@media (max-width: 480px) {
    .luxe-gallery-justified .luxe-gallery-item {
        width: 100%;
        height: 250px;
    }

    .luxe-gallery-full-view {
        padding: 0 10px 10px 10px;
    }

    .luxe-gallery-category-nav {
        padding: 6px 10px 6px 44px;
    }

    .back-to-grid-view {
        left: 6px;
        width: 28px;
        height: 28px;
    }

    .luxe-gallery-full-view .luxe-gallery-categories-wrapper {
        padding-top: 75px;
    }

    .luxe-gallery-category-nav ul {
        gap: 6px;
    }

    .luxe-gallery-category-nav a {
        gap: 3px;
        padding: 3px;
    }

    .luxe-gallery-category-nav img {
        width: 50px;
        height: 50px;
    }

    .luxe-gallery-category-nav span {
        font-size: 10px;
        max-width: 50px;
    }

    .luxe-gallery-category-section {
        scroll-margin-top: 100px;
    }

    .luxe-gallery-category-section .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
}

/* Photoswipe Customization */
.pswp__img {
    object-fit: contain;
}

/* Lightbox Counter Styles */
.pswp-custom-counter {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    line-height: 32px !important;
    padding: 0 12px !important;
}

/* Position counter at top-left */
.pswp__top-bar .pswp-custom-counter {
    position: absolute !important;
    top: 15px !important;
    left: 20px !important;
}

.pswp__counter-current {
    font-weight: 600;
}

.pswp__counter-total {
    opacity: 0.8;
}

/* Custom Navigation Arrows */
.pswp__button.pswp__button--arrow--prev,
.pswp__button.pswp__button--arrow--next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 1000 !important;
    opacity: 0.9 !important;
}

.pswp__button.pswp__button--arrow--prev {
    left: 20px !important;
    right: auto !important;
}

.pswp__button.pswp__button--arrow--next {
    right: 20px !important;
    left: auto !important;
}

.pswp__button.pswp__button--arrow--prev:hover,
.pswp__button.pswp__button--arrow--next:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.pswp__button--arrow--prev svg,
.pswp__button--arrow--next svg {
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Prevent default flip on next arrow when using custom SVG */
.pswp__button--arrow--next .pswp__icn {
    transform: none !important;
}

/* Hide arrows on mobile for better UX */
@media (max-width: 768px) {
    .pswp__button--arrow--prev,
    .pswp__button--arrow--next {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .pswp__button--arrow--prev {
        left: 10px;
    }
    
    .pswp__button--arrow--next {
        right: 10px;
    }
    
    .pswp__counter {
        font-size: 14px;
        top: 15px;
        left: 15px;
    }
}

/* Focus styles for accessibility */
.pswp__button--arrow--prev:focus,
.pswp__button--arrow--next:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Share Button in Lightbox */
.pswp__button--share {
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    cursor: pointer !important;
}

.pswp__button--share:hover {
    opacity: 0.8 !important;
}

.pswp__button--share svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Share Notification */
@keyframes luxe-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes luxe-fade-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

.luxe-gallery-share-notification {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Print Styles */
@media print {
    .luxe-gallery-category-nav,
    .luxe-gallery-zoom,
    .show-all-photos,
    .show-all-photos-mobile,
    .back-to-grid-view {
        display: none;
    }
    
    .luxe-gallery-item,
    .hero-image-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.luxe-gallery-item:focus-within,
.hero-image-item:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.luxe-gallery-link:focus,
.hero-image-item a:focus {
    outline: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .luxe-gallery-item,
    .hero-image-item {
        border: 2px solid currentColor;
    }
    
    .show-all-photos,
    .show-all-photos-mobile {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .luxe-gallery-item,
    .luxe-gallery-item img,
    .hero-image-item img,
    .luxe-gallery-caption,
    .luxe-gallery-zoom,
    .luxe-gallery-full-view {
        transition: none;
    }
    
    @keyframes luxe-spin {
        to { transform: none; }
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .luxe-gallery-full-view {
        background: #1a1a1a;
        color: #f0f0f0;
    }

    .luxe-gallery-category-nav {
        background: #1a1a1a;
        border-bottom-color: #333;
    }

    .luxe-gallery-category-nav.is-sticky {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .luxe-gallery-category-nav a {
        color: #999;
    }

    .luxe-gallery-category-nav a:hover,
    .luxe-gallery-category-nav a.active {
        color: #fff;
        border-bottom-color: #fff;
    }

    .back-to-grid-view {
        background: #2a2a2a;
        border-color: #444;
    }

    .back-to-grid-view svg {
        color: #f0f0f0;
    }

    .luxe-gallery-item {
        background: #2a2a2a;
    }

    .luxe-gallery-skeleton,
    .hero-image-item.is-loading,
    .grid-image-item.is-loading {
        background: #2a2a2a;
    }
}