.gallery-page {
    background-color: #070707;
    color: #ffffff;
    min-height: 100vh;
}

.gallery-hero {
    position: relative;
    padding-top: 104px;
}

.gallery-hero-media {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 360px;
}

.gallery-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.25) 0%, rgba(7, 7, 7, 0.85) 100%);
}

.gallery-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
    gap: 0.75rem;
}

.gallery-hero-eyebrow {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffc800;
}

.gallery-hero-title {
    font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
    font-weight: 700;
}

.gallery-hero-lead {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.gallery-collection {
    padding: 5rem 0 6rem;
}

.gallery-collection-title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.gallery-collection-subtitle {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.75);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover,
.gallery-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.gallery-item-link {
    display: block;
    position: relative;
}

.gallery-item-link::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(7, 7, 7, 0.75);
    color: #ffc800;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item-link:hover::after,
.gallery-item-link:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-item-caption {
    padding: 1.5rem;
}

.gallery-item-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-item-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.gallery-empty {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 3rem;
}

@media (max-width: 767px) {
    .gallery-hero-content {
        padding-bottom: 3rem;
    }

    .gallery-hero-media {
        height: 50vh;
    }

    .gallery-item img {
        height: 240px;
    }
}