/* Gallery Page — original image ratios, masonry layout */

.gallery-hero {
    position: relative;
    height: 65vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-hero-container {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-hero-content {
    max-width: 650px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.gallery-hero-content h1 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.gallery-hero-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.gallery-hero .hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gallery-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.55));
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ── Masonry: keeps each photo’s original ratio ── */

.gallery-display-section {
    padding: 48px 0 80px;
    background: var(--bg-primary);
}

.gallery-grid {
    width: min(1280px, 94%);
    margin: 0 auto;
    column-count: 3;
    column-gap: 10px;
}

.gallery-display-section .gallery-photo-card {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-display-section .gallery-photo-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    vertical-align: top;
    transition: transform 0.45s ease;
}

.gallery-display-section .gallery-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.gallery-display-section .gallery-photo-card:hover img {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 8px;
    }

    .gallery-display-section .gallery-photo-card {
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .gallery-hero {
        height: 50vh;
    }

    .gallery-hero-content h1 {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 0;
    }
}
