.home-gallery,
.gallery-grid-section,
.rail-section,
.spotlight-section,
.gallery-chip-section,
.image-detail-page,
.search-spotlight {
    margin-top: 2rem;
}

.gallery-eyebrow {
    margin-bottom: 0.75rem;
    color: #8f4b23;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-spotlight {
    padding: 1.5rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 126, 0.42), transparent 30%),
        linear-gradient(135deg, #fffaf3 0%, #ffffff 50%, #eef5fb 100%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
}

.search-spotlight__copy h1 {
    color: #18212f;
    font-size: clamp(1.75rem, 3.4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.search-spotlight__copy p:last-child {
    color: #5f6d7e;
    margin-bottom: 0;
}

.hero-stage,
.gallery-page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 205, 137, 0.45), transparent 40%),
        linear-gradient(135deg, #fff7ed 0%, #fff 55%, #f3f7fb 100%);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
}

.hero-stage {
    padding: 1.25rem;
}

.hero-copy,
.gallery-page-hero__content {
    max-width: 100%;
    padding: 1rem 1rem 0;
}

.hero-copy h1,
.gallery-page-hero__content h1 {
    color: #18212f;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-copy,
.gallery-page-hero__content {
    color: #536072;
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 1rem;
}

.gallery-search-form {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.gallery-search-form input {
    flex: 1 1 320px;
    min-height: 54px;
    padding: 0.95rem 1.1rem;
    border: 1px solid #d7e1ea;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #18212f;
}

.gallery-search-form button {
    min-height: 54px;
    padding: 0.95rem 1.35rem;
    border: 0;
    border-radius: 18px;
    background: #18212f;
    color: #fff;
    font-weight: 700;
}

.gallery-chip-list--hero {
    padding: 1rem 0 0;
}

.hero-carousel {
    margin-top: 1.5rem;
}

.hero-carousel__item {
    position: relative;
    display: block;
    height: clamp(320px, 52vw, 620px);
    overflow: hidden;
    border-radius: 24px;
}

.hero-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 15, 24, 0.72), rgba(10, 15, 24, 0));
    color: #fff;
}

.hero-carousel__overlay h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.4rem, 2.2vw, 2.4rem);
    font-weight: 800;
}

.hero-carousel__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading h2,
.category-rail-block__header h3 {
    margin: 0;
    color: #18212f;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
}

.section-heading p,
.category-rail-block__header p {
    margin: 0.35rem 0 0;
    color: #5f6d7e;
}

.group-spotlight-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.group-spotlight-card,
.gallery-image-card,
.rail-image-card {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.group-spotlight-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.2rem 0;
    color: inherit;
    text-decoration: none;
}

.group-spotlight-card__header h3 {
    margin: 0;
    color: #18212f;
    font-size: 1.2rem;
    font-weight: 800;
}

.group-spotlight-card__header p {
    margin-top: 0.4rem;
    color: #66758a;
    font-size: 0.95rem;
}

.group-spotlight-card__header span {
    white-space: nowrap;
    color: #8f4b23;
    font-weight: 700;
    font-size: 0.9rem;
}

.group-spotlight-card__collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1.2rem;
}

.group-spotlight-card__collage a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
}

.group-spotlight-card__collage img,
.gallery-image-card__media img,
.rail-image-card__media img,
.image-detail-page__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0 1.2rem 1.2rem;
}

.gallery-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #f6efe7;
    color: #7a411e;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.gallery-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.gallery-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #edf4fb;
    color: #2f5b84;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.gallery-tag-list--detail {
    margin-top: 0.25rem;
}

.gallery-chip:hover,
.gallery-tag:hover,
.gallery-image-card__title:hover,
.gallery-image-card__category:hover,
.category-rail-block__header h3 a:hover,
.rail-image-card__body a:hover {
    color: #b45309;
}

.gallery-image-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-image-card__media,
.rail-image-card__media {
    display: block;
    overflow: hidden;
}

.gallery-image-card__media,
.rail-image-card__media {
    aspect-ratio: 4 / 5;
}

.gallery-image-card__body,
.rail-image-card__body {
    padding: 1rem 1rem 1.1rem;
}

.gallery-image-card__title,
.rail-image-card__body a {
    display: block;
    color: #18212f;
    text-decoration: none;
    font-weight: 700;
}

.gallery-image-card__category {
    display: inline-block;
    margin-top: 0.45rem;
    color: #6b7280;
    text-decoration: none;
}

.gallery-empty-state {
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: #fff;
    color: #5f6d7e;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-rail-block {
    margin-bottom: 2rem;
}

.category-rail-block__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-rail-block__header h3 a,
.rail-link {
    color: #18212f;
    text-decoration: none;
}

.category-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 18vw);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.category-rail .rail-image-card {
    scroll-snap-align: start;
}

.rail-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.rail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #18212f;
    color: #fff;
}

.rail-link {
    font-weight: 700;
}

.image-detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 2rem;
    align-items: start;
}

.image-detail-page__media {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.image-detail-page__content {
    padding: 1rem 0;
}

.image-detail-page__content h1 {
    color: #18212f;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.image-detail-page__meta a {
    color: #7a411e;
    text-decoration: none;
    font-weight: 700;
}

.image-detail-page__details p {
    color: #556273;
    margin-bottom: 0.65rem;
}

.image-detail-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

@media (max-width: 1199px) {
    .group-spotlight-grid,
    .gallery-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-rail {
        grid-auto-columns: minmax(220px, 32vw);
    }

    .image-detail-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-stage,
    .gallery-page-hero,
    .search-spotlight {
        border-radius: 22px;
    }

    .hero-stage,
    .search-spotlight {
        padding: 0.85rem;
    }

    .section-heading,
    .category-rail-block__header {
        flex-direction: column;
        align-items: start;
    }

    .group-spotlight-grid,
    .gallery-image-grid {
        grid-template-columns: 1fr;
    }

    .category-rail {
        grid-auto-columns: minmax(76vw, 76vw);
    }
}
