.content-gallery {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: #fff;
}

.content-gallery__inner {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
}

.content-gallery__subtitle {
    margin: 0 0 .5rem;
    color: #d97706;
    font-weight: 700;
}

.content-gallery__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
}

.content-gallery__description {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #475569;
    line-height: 1.75;
}

.content-gallery__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.content-gallery__item {
    min-width: 0;
}

.content-gallery__item--featured {
    grid-column: 1 / -1;
}

.content-gallery__media-frame {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #e2e8f0;
}

.content-gallery__item--featured .content-gallery__media-frame {
    aspect-ratio: 16 / 9;
}

.content-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.content-gallery__media-frame:hover .content-gallery__image {
    transform: scale(1.02);
}

.content-gallery__item-title {
    margin: 1rem 0 0;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
}

.content-gallery__item-description {
    margin: .5rem 0 0;
    color: #64748b;
    line-height: 1.65;
}

@media (min-width: 40rem) {
    .content-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .content-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
