/**
 * Gallery / Thư viện hình ảnh Styles
 * Vi Vu Quảng Bình
 */

:root {
    --vv-purple: #690d87;
    --vv-purple-dark: #500966;
    --vv-purple-light: #f5eff9;
    --vv-purple-border: #e6d7ef;
    --vv-orange: #ff8525;
    --vv-orange-hover: #e57116;
    --vv-green: #2e8b57;
    --vv-green-hover: #246d44;
    --vv-text: #2d3748;
    --vv-text-muted: #718096;
    --vv-radius: 12px;
    --vv-radius-lg: 18px;
    --vv-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    --vv-shadow-hover: 0 10px 30px rgba(105, 13, 135, 0.15);
}

.gallery-page-wrap {
    font-family: inherit;
    color: var(--vv-text);
    background-color: #fcfbfe;
    overflow-x: hidden;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.gallery-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 56px 0 76px;
    color: #ffffff;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 6, 16, 0.88) 0%, rgba(8, 6, 16, 0.72) 36%, rgba(8, 6, 16, 0.22) 68%, rgba(8, 6, 16, 0.04) 100%);
    backdrop-filter: blur(0.5px);
    z-index: 1;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.gallery-hero-content > :is(.gallery-kicker, .gallery-hero-title, .gallery-hero-sub, .gallery-hero-desc, .gallery-hero-btn) { max-width: 680px; }

.gallery-breadcrumb {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}
.gallery-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}
.gallery-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.gallery-breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.6;
}
.gallery-breadcrumb .curr {
    color: #ffffff;
    font-weight: 500;
}

.gallery-kicker {
    font-size: 13px;
    letter-spacing: 1.8px;
    font-weight: 700;
    text-transform: uppercase;
    color: #caa1ea;
    margin: 0 0 8px;
}

.gallery-hero-title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.gallery-hero-title .highlight-green {
    color: #4bb543;
    display: inline;
}

.gallery-hero-sub {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}

.gallery-hero-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    max-width: 580px;
}

.gallery-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}
.gallery-hero-btn:hover {
    background: #ffffff;
    color: var(--vv-purple);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   TOOLBAR & FILTER SECTION
   ========================================================================== */
.gallery-toolbar-section {
    position: relative;
    z-index: 10;
    margin-top: -28px;
    padding-bottom: 24px;
}

.gallery-toolbar {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(105, 13, 135, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(105, 13, 135, 0.1);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.gallery-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gallery-pill {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vv-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.gallery-pill:hover {
    background: var(--vv-purple-light);
    color: var(--vv-purple);
}
.gallery-pill.active {
    background: var(--vv-purple);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(105, 13, 135, 0.3);
}

.gallery-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.gallery-select {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 34px 8px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--vv-text);
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.gallery-select:focus {
    border-color: var(--vv-purple);
    box-shadow: 0 0 0 3px rgba(105, 13, 135, 0.12);
}
.select-chevron {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--vv-text-muted);
}

.gallery-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.gallery-search-box input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 38px 8px 16px;
    font-size: 13.5px;
    color: var(--vv-text);
    width: 170px;
    outline: none;
    transition: all 0.25s;
}
.gallery-search-box input:focus {
    width: 220px;
    background: #ffffff;
    border-color: var(--vv-purple);
    box-shadow: 0 0 0 3px rgba(105, 13, 135, 0.12);
}
.gallery-search-box .search-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--vv-text-muted);
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.gallery-section {
    padding: 44px 0;
}

.gallery-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--vv-purple);
    margin: 0 0 24px;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}
.gallery-section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 48px;
    background: linear-gradient(90deg, var(--vv-purple), transparent);
    border-radius: 2px;
}

/* ==========================================================================
   SECTION 1: ALBUM NỔI BẬT
   ========================================================================== */
.gallery-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-featured-card {
    background: #ffffff;
    border-radius: var(--vv-radius-lg);
    overflow: hidden;
    box-shadow: var(--vv-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}
.gallery-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--vv-shadow-hover);
}

.gallery-featured-card .card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf2f7;
}
.gallery-featured-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-featured-card:hover .card-media img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(46, 139, 87, 0.9);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-badge.badge-teambuilding {
    background: rgba(46, 139, 87, 0.9);
}
.card-badge.badge-tourdoan {
    background: rgba(105, 13, 135, 0.9);
}

.gallery-featured-card .card-info {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-featured-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--vv-text);
    margin: 0 0 6px;
    line-height: 1.35;
}

.gallery-featured-card .card-sub {
    font-size: 13.5px;
    color: var(--vv-text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
    flex: 1;
}

.gallery-featured-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vv-purple);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s, transform 0.2s;
}
.gallery-featured-card .card-link:hover {
    color: var(--vv-orange);
    transform: translateX(3px);
}

/* ==========================================================================
   SECTION 2: HÌNH ẢNH MỚI
   ========================================================================== */
.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-photo-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-photo-item.is-extra {
    display: none;
}
.gallery-photo-item.is-extra.show {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.gallery-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(105, 13, 135, 0.16);
}

.photo-card-inner {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #edf2f7;
}

.photo-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-photo-item:hover .photo-card-inner img {
    transform: scale(1.08);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(15, 15, 20, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 58px 14px 16px;
    pointer-events: none;
}

.photo-tag {
    font-size: 11px;
    font-weight: 700;
    color: #68ae48;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.photo-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    border: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}
.photo-zoom-btn:hover {
    background: var(--vv-purple);
    transform: scale(1.1);
}

.gallery-more-wrap {
    display: none;
}

.gallery-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid var(--vv-purple);
    color: var(--vv-purple);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-outline-btn:hover {
    background: var(--vv-purple);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(105, 13, 135, 0.22);
}

/* ==========================================================================
   SECTION 3: KHÁM PHÁ THEO CHỦ ĐỀ
   ========================================================================== */
.gallery-themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-theme-card {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: var(--vv-radius);
    overflow: hidden;
    box-shadow: var(--vv-shadow);
    transition: all 0.3s ease;
}
.gallery-theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vv-shadow-hover);
}

.gallery-theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-theme-card:hover img {
    transform: scale(1.08);
}

.theme-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 20%, rgba(15, 15, 25, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px;
}

.theme-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.theme-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffb865;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.theme-card-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.theme-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 2;
}
.theme-zoom-btn:hover {
    background: var(--vv-purple);
    transform: scale(1.1);
}

/* ==========================================================================
   SECTION 4: ĐIỂM ĐẾN QUA ỐNG KÍNH
   ========================================================================== */
.dest-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dest-header-flex .gallery-section-title {
    margin-bottom: 0;
}

.dest-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dest-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vv-text);
    cursor: pointer;
    transition: all 0.2s;
}
.dest-tab:hover {
    border-color: var(--vv-purple);
    color: var(--vv-purple);
}
.dest-tab.active {
    background: var(--vv-purple);
    border-color: var(--vv-purple);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(105, 13, 135, 0.25);
}

.dest-pane {
    display: none;
}
.dest-pane.active {
    display: block;
    animation: fadeIn 0.35s ease forwards;
}

.dest-grid-layout {
    display: grid;
    grid-template-columns: 4fr 3fr 3.5fr;
    gap: 20px;
    align-items: stretch;
}

.dest-main-photo {
    border-radius: var(--vv-radius-lg);
    overflow: hidden;
    box-shadow: var(--vv-shadow);
    background: #edf2f7;
    height: 100%;
    min-height: 340px;
}
.dest-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.dest-main-photo:hover img {
    transform: scale(1.04);
}

.dest-sub-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}

.sub-photo-item {
    border-radius: var(--vv-radius);
    overflow: hidden;
    background: #edf2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    aspect-ratio: 4 / 3;
}
.sub-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.sub-photo-item:hover img {
    transform: scale(1.08);
}

.dest-content-col {
    background: #ffffff;
    border-radius: var(--vv-radius-lg);
    border: 1px solid rgba(105, 13, 135, 0.08);
    box-shadow: var(--vv-shadow);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dest-col-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--vv-purple);
    line-height: 1.35;
    margin: 0 0 16px;
}

.dest-col-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--vv-text-muted);
    margin: 0 0 24px;
}

.dest-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--vv-orange);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.2s, color 0.2s;
    align-self: flex-start;
}
.dest-action-link:hover {
    color: var(--vv-orange-hover);
    transform: translateX(4px);
}

/* ==========================================================================
   SECTION 5: BẠN CÓ ẢNH ĐẸP TRONG HÀNH TRÌNH CÙNG VI VU?
   ========================================================================== */
.gallery-contribute-card {
    background: linear-gradient(135deg, #f7f3fb 0%, #fcfaff 100%);
    border: 1.5px solid var(--vv-purple-border);
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    box-shadow: 0 8px 30px rgba(105, 13, 135, 0.06);
    position: relative;
    overflow: hidden;
}

.contribute-left {
    flex: 1;
    max-width: 540px;
}

.contribute-title {
    font-size: 25px;
    font-weight: 800;
    color: var(--vv-purple);
    margin: 0 0 10px;
    line-height: 1.3;
}

.contribute-desc {
    font-size: 15px;
    color: var(--vv-text-muted);
    margin: 0 0 24px;
}

.contribute-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 999px;
    background: var(--vv-orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 133, 37, 0.35);
    transition: all 0.3s ease;
}
.contribute-btn:hover {
    background: var(--vv-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 133, 37, 0.45);
}

.contribute-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.polaroid-stack {
    position: relative;
    width: 320px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaroid-card {
    position: absolute;
    background: #ffffff;
    padding: 8px 8px 24px 8px;
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, z-index 0.3s;
    cursor: pointer;
}
.polaroid-card:hover {
    z-index: 10 !important;
    transform: scale(1.08) !important;
}

.polaroid-frame {
    width: 145px;
    height: 110px;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
}
.polaroid-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-1 {
    transform: rotate(-10deg) translateX(-65px);
    z-index: 1;
}
.polaroid-2 {
    transform: rotate(2deg) translateY(-8px);
    z-index: 2;
}
.polaroid-3 {
    transform: rotate(12deg) translateX(70px);
    z-index: 3;
}

/* ==========================================================================
   SECTION 6: PRE-FOOTER CTA
   ========================================================================== */
.gallery-cta-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.gallery-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 32, 24, 0.82) 0%, rgba(20, 48, 36, 0.9) 100%);
    z-index: 1;
}

.gallery-cta-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.gallery-cta-title {
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 28px;
    line-height: 1.3;
}

.gallery-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gallery-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    background: var(--vv-green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.35);
    transition: all 0.25s ease;
}
.gallery-btn-phone:hover {
    background: var(--vv-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 139, 87, 0.45);
}

.gallery-btn-tour {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    background: var(--vv-orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 133, 37, 0.35);
    transition: all 0.25s ease;
}
.gallery-btn-tour:hover {
    background: var(--vv-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 133, 37, 0.45);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.gallery-lightbox.open {
    display: flex;
    animation: fadeIn 0.25s ease forwards;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 25, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-figure {
    position: relative;
    max-width: 1000px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    left: 16px;
}
.lightbox-next {
    right: 16px;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .gallery-hero-title {
        font-size: 34px;
    }
    .gallery-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dest-grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    .dest-content-col {
        grid-column: span 2;
    }
    .gallery-contribute-card {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }
    .contribute-left {
        max-width: 100%;
    }
    .contribute-btn {
        margin: 0 auto;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 44px 16px 54px;
        min-height: 350px;
        background-position: 70% center;
    }
    .gallery-hero-overlay {
        background: linear-gradient(180deg, rgba(8, 6, 16, 0.88) 0%, rgba(8, 6, 16, 0.75) 100%);
    }
    .gallery-hero-title {
        font-size: 28px;
    }
    .gallery-hero-sub {
        font-size: 15px;
    }
    .gallery-toolbar {
        border-radius: 20px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .gallery-filter-pills {
        justify-content: center;
    }
    .gallery-toolbar-controls {
        flex-direction: column;
        gap: 10px;
    }
    .gallery-select-wrapper,
    .gallery-select,
    .gallery-search-box,
    .gallery-search-box input {
        width: 100%;
    }
    .gallery-search-box input:focus {
        width: 100%;
    }
    .gallery-featured-grid {
        grid-template-columns: 1fr;
    }
    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .gallery-themes-grid {
        grid-template-columns: 1fr;
    }
    .dest-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .dest-grid-layout {
        grid-template-columns: 1fr;
    }
    .dest-main-photo {
        min-height: 240px;
    }
    .dest-content-col {
        grid-column: span 1;
        padding: 24px 20px;
    }
    .polaroid-stack {
        width: 260px;
        height: 160px;
    }
    .polaroid-frame {
        width: 110px;
        height: 85px;
    }
    .polaroid-1 {
        transform: rotate(-10deg) translateX(-45px);
    }
    .polaroid-3 {
        transform: rotate(12deg) translateX(50px);
    }
    .gallery-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .gallery-btn-phone,
    .gallery-btn-tour {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-photo-grid {
        grid-template-columns: 1fr;
    }
    .gallery-pill {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Match the compact reference composition on desktop. */
@media (min-width: 769px) {
    .gallery-hero { min-height: 300px; padding: 42px 0 58px; }
    .gallery-featured-card { position: relative; min-height: 220px; border-radius: 10px; }
    .gallery-featured-card .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
    .gallery-featured-card .card-media::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(9, 19, 25, .92)); }
    .gallery-featured-card .card-info { position: absolute; inset: auto 0 0; z-index: 2; padding: 44px 16px 14px; color: #fff; }
    .gallery-featured-card .card-title { color: #fff; font-size: 16px; margin-bottom: 3px; }
    .gallery-featured-card .card-sub { color: rgba(255,255,255,.85); font-size: 11px; margin-bottom: 5px; }
    .gallery-featured-card .card-link { color: #ffb21f; font-size: 11px; }
    .gallery-featured-card .card-badge { top: auto; bottom: 55px; left: 12px; font-size: 10px; padding: 3px 10px; }
}
