/* ============================================================
   Gallery Hero Section
   ============================================================ */

.gallery_hero_section {
    position: relative;
    min-height: clamp(400px, 56vw, 640px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: clamp(5rem, 10vw, 9rem);
    padding-bottom: 0;
    background: black;
}

.gallery_hero_section .absolute_media {
    opacity: .5;
}

.gallery_hero_overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 72% 30%, rgba(70, 172, 219, 0.22) 0%, transparent 52%),
        radial-gradient(ellipse at 18% 75%, rgba(0, 105, 138, 0.16) 0%, transparent 48%),
        radial-gradient(ellipse at 50% 100%, rgba(6, 24, 40, 0.4) 0%, transparent 60%);
    z-index: 1;
}

.gallery_hero_content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(5rem, 9vw, 8rem);
    text-align: center;
}

.gallery_hero_section .gallery_breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}

.gallery_hero_section .gallery_breadcrumb li {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.48);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery_hero_section .gallery_breadcrumb li:not(:last-child)::after {
    content: '/';
    color: rgba(255, 255, 255, 0.22);
}

.gallery_hero_section .gallery_breadcrumb a {
    color: rgba(255, 255, 255, 0.48);
    transition: color var(--transition);
}

.gallery_hero_section .gallery_breadcrumb a:hover {
    color: var(--yellow);
}

.gallery_hero_section .gallery_hero_eyebrow {
    display: inline-block;
    font-size: clamp(0.68rem, 0.82vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 1.2rem;
}

.gallery_hero_section .gallery_hero_title {
    font-size: clamp(2rem, 4.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    text-wrap: balance;
    margin-bottom: 1.4rem;
}

.gallery_hero_section .gallery_hero_title_accent {
    display: block;
    color: var(--yellow);
    margin-top: 0.25rem;
}

.gallery_hero_section .gallery_hero_sub {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.72;
    font-weight: 400;
    max-width: 560px;
    margin: 0 auto;
}

.gallery_hero_section .gallery_hero_wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.gallery_hero_section .gallery_hero_wave svg {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .gallery_hero_section .gallery_hero_title {
        font-size: clamp(1.7rem, 5.5vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .gallery_hero_content {
        text-align: left;
    }

    .gallery_hero_section .gallery_breadcrumb ol {
        justify-content: flex-start;
    }

    .gallery_hero_section .gallery_hero_sub {
        max-width: 100%;
    }
}


/* ============================================================
   Main Gallery Grid Section
   ============================================================ */

.gallery_grid_section {
    background: #0b1e2e;
    padding: clamp(4rem, 7.5vw, 7.5rem) 0 clamp(4.5rem, 8vw, 8.5rem);
}

.gallery_grid_section .gallery_grid_inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.gallery_grid_section .gallery_grid_header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.gallery_grid_section .gallery_grid_heading {
    font-size: clamp(1.7rem, 3vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.gallery_grid_section .gallery_grid_sub {
    font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.76;
    font-weight: 400;
}

/* Masonry layout via CSS columns */
.gallery_grid_section .gallery_masonry {
    column-count: 4;
    column-gap: clamp(0.75rem, 1.2vw, 1.1rem);
}

@media (max-width: 1100px) {
    .gallery_grid_section .gallery_masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery_grid_section .gallery_masonry {
        column-count: 2;
    }
}

@media (max-width: 420px) {
    .gallery_grid_section .gallery_masonry {
        column-count: 2;
        column-gap: 0.55rem;
    }
}


/* ============================================================
   Gallery Item
   ============================================================ */

.gallery_grid_section .gallery_item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    break-inside: avoid;
    margin-bottom: clamp(0.75rem, 1.2vw, 1.1rem);
    cursor: pointer;
    background: #061828;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery_grid_section .gallery_item:hover {
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.52);
    transform: translateY(-2px);
}

.gallery_grid_section .gallery_item:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* Real photo */
.gallery_grid_section .gallery_item_photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery_grid_section .gallery_item--portrait .gallery_item_photo {
    aspect-ratio: 3 / 4;
}

.gallery_grid_section .gallery_item--tall .gallery_item_photo {
    aspect-ratio: 2 / 3;
}

.gallery_grid_section .gallery_item--square .gallery_item_photo {
    aspect-ratio: 1 / 1;
}

.gallery_grid_section .gallery_item:hover .gallery_item_photo {
    transform: scale(1.06);
}

/* Zoom icon hint */
.gallery_grid_section .gallery_item_zoom {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    width: 2.1rem;
    height: 2.1rem;
    background: rgba(6, 24, 40, 0.72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.gallery_grid_section .gallery_item:hover .gallery_item_zoom {
    opacity: 1;
    transform: scale(1);
}


/* ============================================================
   Gallery Item Caption (hover overlay)
   ============================================================ */

.gallery_grid_section .gallery_item_caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: clamp(1.4rem, 2.2vw, 1.8rem) clamp(0.8rem, 1.3vw, 1.1rem) clamp(0.9rem, 1.5vw, 1.2rem);
    background: linear-gradient(to top, rgba(6, 24, 40, 0.96) 0%, rgba(6, 24, 40, 0.55) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.gallery_grid_section .gallery_item:hover .gallery_item_caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery_grid_section .gallery_item_tag {
    font-size: clamp(0.58rem, 0.68vw, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
}

.gallery_grid_section .gallery_item_name {
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

/* Always show captions on touch devices */
@media (hover: none) {
    .gallery_grid_section .gallery_item_caption {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery_grid_section .gallery_item_zoom {
        display: none;
    }
}

@media (max-width: 420px) {
    .gallery_grid_section .gallery_item {
        margin-bottom: 0.55rem;
    }
}


/* ============================================================
   Lightbox
   ============================================================ */

.gallery_lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery_lightbox[hidden] {
    display: none;
}

.gallery_lightbox_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 14, 24, 0.94);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}

/* Close button */
.gallery_lightbox_close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 2.8rem;
    height: 2.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery_lightbox_close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.1);
}

/* Nav arrows */
.gallery_lightbox_nav {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: clamp(2.6rem, 4vw, 3.4rem);
    height: clamp(2.6rem, 4vw, 3.4rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--white);
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    margin: 0 clamp(0.5rem, 1.5vw, 1.5rem);
}

.gallery_lightbox_nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

/* Stage */
.gallery_lightbox_stage {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(88vw, 1080px);
    width: 100%;
}

.gallery_lightbox_img_wrap {
    width: 100%;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #061828;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.62);
}

.gallery_lightbox_img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Caption bar below image */
.gallery_lightbox_info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.1rem;
    padding: 0 0.25rem;
    width: 100%;
}

.gallery_lightbox_tag {
    font-size: clamp(0.6rem, 0.75vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
    flex-shrink: 0;
}

.gallery_lightbox_name {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    font-weight: 600;
    color: var(--white);
    flex: 1;
}

.gallery_lightbox_counter {
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    color: rgba(255, 255, 255, 0.42);
    font-weight: 500;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .gallery_lightbox_nav {
        width: 2.4rem;
        height: 2.4rem;
        margin: 0 0.35rem;
    }

    .gallery_lightbox_stage {
        max-width: 92vw;
    }

    .gallery_lightbox_img_wrap {
        max-height: 65vh;
    }

    .gallery_lightbox_img {
        max-height: 65vh;
    }

    .gallery_lightbox_info {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
}


/* ============================================================
   Highlight Feature Section
   ============================================================ */

.gallery_feature_section {
    position: relative;
    padding: clamp(5rem, 9vw, 9rem) 0;
    overflow: hidden;
}

.gallery_feature_section .gallery_feature_bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #f0f7fb 0%, #e5f2f8 100%);
    z-index: 0;
}

.gallery_feature_section .gallery_feature_overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(0, 105, 138, 0.06) 0%, transparent 62%);
    z-index: 1;
}

.gallery_feature_section .gallery_feature_inner {
    position: relative;
    z-index: 2;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 7.5rem);
    align-items: center;
}

.gallery_feature_section .gallery_feature_img {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, #061828 0%, #0a3d5e 50%, #00698a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery_feature_section .gallery_feature_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery_feature_section .gallery_feature_img_glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(70, 172, 219, 0.2) 0%, transparent 62%);
    z-index: 1;
    pointer-events: none;
}

.gallery_feature_section .gallery_feature_badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    background: rgba(253, 199, 14, 0.96);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    box-shadow: 0 8px 28px rgba(253, 199, 14, 0.38);
}

.gallery_feature_section .gallery_feature_badge strong {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 900;
    color: #07121c;
    line-height: 1;
}

.gallery_feature_section .gallery_feature_badge span {
    font-size: clamp(0.6rem, 0.72vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #07121c;
}

.gallery_feature_section .gallery_feature_accent {
    position: absolute;
    top: -1.4rem;
    right: -1.4rem;
    width: clamp(62px, 7vw, 78px);
    height: clamp(62px, 7vw, 78px);
    background: var(--yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    color: #07121c;
    box-shadow: 0 8px 28px rgba(253, 199, 14, 0.42);
    transform: rotate(10deg);
    transition: transform var(--transition);
}

.gallery_feature_section .gallery_feature_inner:hover .gallery_feature_accent {
    transform: rotate(6deg) translateY(-3px);
}

.gallery_feature_section .gallery_feature_heading {
    font-size: clamp(1.7rem, 2.8vw, 2.8rem);
    font-weight: 800;
    color: #0d2235;
    line-height: 1.18;
    margin-bottom: 1.4rem;
    text-wrap: balance;
}

.gallery_feature_section .gallery_feature_heading_accent {
    display: block;
    color: var(--blue);
}

.gallery_feature_section .gallery_feature_body {
    font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    color: #4a6070;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 1.1rem;
}

.gallery_feature_section .gallery_feature_stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery_feature_section .gallery_feature_stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gallery_feature_section .gallery_feature_stat_val {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
}

.gallery_feature_section .gallery_feature_stat_lbl {
    font-size: clamp(0.68rem, 0.8vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #4a6070;
}

.gallery_feature_section .gallery_feature_stat_sep {
    width: 1px;
    height: 42px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .gallery_feature_section .gallery_feature_inner {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .gallery_feature_section .gallery_feature_img {
        aspect-ratio: 16 / 7;
        max-height: 340px;
    }

    .gallery_feature_section .gallery_feature_accent {
        top: auto;
        bottom: -1.2rem;
        right: 1.5rem;
    }
}

@media (max-width: 580px) {
    .gallery_feature_section .gallery_feature_stats {
        gap: 1.2rem;
    }

    .gallery_feature_section .gallery_feature_stat_sep {
        display: none;
    }
}


/* ============================================================
   Gallery CTA Section
   ============================================================ */

.gallery_cta_section {
    position: relative;
    padding: clamp(5rem, 9vw, 9.5rem) 0;
    overflow: hidden;
    text-align: center;
    background: black;
}

.gallery_cta_section .absolute_media {
    opacity: .7;
}

.gallery_cta_section .gallery_cta_overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(70, 172, 219, 0.15) 0%, transparent 62%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 105, 138, 0.12) 0%, transparent 45%);
    z-index: 1;
}

.gallery_cta_section .gallery_cta_content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.gallery_cta_section .gallery_cta_heading {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

.gallery_cta_section .gallery_cta_sub {
    font-size: clamp(0.92rem, 1.1vw, 1.1rem);
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.74;
    font-weight: 400;
    margin-bottom: 2.6rem;
}

.gallery_cta_section .gallery_cta_actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery_cta_section .gallery_cta_actions .btn {
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .gallery_cta_section .gallery_cta_actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery_cta_section .gallery_cta_actions .btn {
        justify-content: center;
    }
}
