/* =========================================
   GALLERY PAGE — Ease My Holiday
========================================= */

.gal-page {
    font-family: "Manrope", system-ui, sans-serif;
    background: #f4f7fb;
    color: #14213d;
    overflow-x: hidden;
}

.gal-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.gal-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #d4a017;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.gal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gal-btn:hover { transform: translateY(-2px); }

.gal-btn-gold { background: #d4a017; color: #14213d; }
.gal-btn-navy { background: #14213d; color: #fff; }
.gal-btn-wa { background: #1fad66; color: #fff; }
.gal-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Hero */
.gal-hero {
    position: relative;
    min-height: clamp(280px, 42vw, 400px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0f1a2b;
}

.gal-hero-media,
.gal-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 18, 34, 0.88) 0%, rgba(8, 18, 34, 0.5) 55%, rgba(8, 18, 34, 0.35) 100%),
        linear-gradient(180deg, rgba(8, 18, 34, 0.15) 0%, rgba(8, 18, 34, 0.8) 100%);
}

.gal-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 48px;
    color: #fff;
}

.gal-hero-inner h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.12;
}

.gal-hero-inner h1 span { color: #d4a017; }

.gal-hero-inner p {
    margin: 0 0 18px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.7;
}

.gal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gal-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

/* Section */
.gal-section {
    padding: 36px 0 20px;
}

.gal-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 18px;
    margin-bottom: 8px;
}

.gal-filters::-webkit-scrollbar { display: none; }

.gal-filter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d7dee8;
    background: #fff;
    color: #3d4c63;
    padding: 10px 14px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gal-filter em {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #566174;
}

.gal-filter:hover {
    border-color: #d4a017;
    color: #14213d;
}

.gal-filter.is-active {
    background: #14213d;
    border-color: #14213d;
    color: #fff;
}

.gal-filter.is-active em {
    background: rgba(212, 160, 23, 0.2);
    color: #d4a017;
}

/* Grid */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gal-item {
    position: relative;
    min-height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: #dfe5ee;
    cursor: pointer;
    outline: none;
    box-shadow: 0 10px 28px rgba(20, 33, 61, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}

.gal-item.is-hidden {
    display: none;
}

.gal-item img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.gal-item:hover,
.gal-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 33, 61, 0.14);
}

.gal-item:hover img,
.gal-item:focus-visible img {
    transform: scale(1.06);
}

.gal-overlay {
    position: absolute;
    inset: 0;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to top, rgba(8, 18, 34, 0.82), rgba(8, 18, 34, 0.05) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gal-item:hover .gal-overlay,
.gal-item:focus-visible .gal-overlay {
    opacity: 1;
}

.gal-overlay span:first-child {
    display: block;
    margin-bottom: 4px;
    color: #d4a017;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gal-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

.gal-expand {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #14213d;
}

.gal-empty {
    text-align: center;
    color: #697386;
    padding: 40px 10px;
    font-weight: 600;
}

.gal-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e6ebf2;
}

.gal-empty-state i {
    font-size: 34px;
    color: #d4a017;
    margin-bottom: 12px;
}

.gal-empty-state h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.gal-empty-state p {
    margin: 0 0 18px;
    color: #697386;
}

.gal-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* CTA */
.gal-cta-band {
    padding: 28px 0 70px;
}

.gal-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border-radius: 20px;
    background: #14213d;
    color: #fff;
    box-shadow: 0 18px 40px rgba(20, 33, 61, 0.2);
}

.gal-cta-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.gal-cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    max-width: 520px;
}

.gal-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Lightbox */
.gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 13, 25, 0.94);
    box-sizing: border-box;
}

.gal-lightbox.is-open {
    display: flex;
}

.gal-lightbox-panel {
    position: relative;
    width: min(1100px, 100%);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    display: block;
    max-width: min(90vw, 100%);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.gal-lb-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #14213d;
    cursor: pointer;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.gal-lb-btn:hover {
    background: #d4a017;
    color: #14213d;
}

.gal-lb-close { top: -8px; right: 0; }
.gal-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.gal-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

.gal-lb-caption {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gal-lb-count {
    position: absolute;
    left: 50%;
    bottom: -58px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
    .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gal-item,
    .gal-item img { min-height: 200px; }
    .gal-overlay { opacity: 1; }
    .gal-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .gal-cta-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .gal-wrap { width: calc(100% - 24px); }
    .gal-hero-inner { padding: 52px 0 40px; }
    .gal-section { padding: 24px 0 10px; }
    .gal-item,
    .gal-item img { min-height: 180px; }
    .gal-cta-actions .gal-btn { width: 100%; }
    .gal-lb-prev { left: 0; }
    .gal-lb-next { right: 0; }
    .gal-lb-caption {
        bottom: -42px;
        white-space: normal;
        font-size: 13px;
    }
    .gal-lb-count { bottom: -64px; }
}

@media (hover: none) {
    .gal-overlay { opacity: 1; }
}
