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

/* 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%;
}

.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);
}

.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: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

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

.luxe-gallery-mobile-slider .swiper {
    width: 100%;
    height: 50vh; /* Or adjust as needed */
    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: 1000;
    overflow-y: auto;
    padding: 250px 40px;
    box-sizing: border-box;
    
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.luxe-gallery-full-view.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.back-to-grid-view {
    position: absolute;
    top: calc(50% - 40px);
    left: 0;
    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: 1001;
}
.back-to-grid-view .dashicons {
    font-size: 20px;
    line-height: 1;
}

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


.luxe-gallery-category-nav {
    position: relative;
    border-bottom: 1px solid #ddd;
    margin-bottom: 32px;
}

.luxe-gallery-category-nav ul {
    list-style: none;
    padding: 0 0 8px 50px;
    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 {
    padding-top: 48px; /* for anchor link scroll offset */
    margin-top: -24px;
}

.luxe-gallery-category-section:first-of-type {
    padding-top: 24px;
}

.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;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .luxe-gallery-hero-grid {
        display: none;
    }
    .luxe-gallery-mobile-slider {
        display: block;
    }
}

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

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