.practice-gallery-section {
    background: #fff;
}

.practice-gallery-section .section-subheading {
    margin-bottom: 2rem;
}

.practice-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(9rem, 15vw, 13rem);
    gap: 1rem;
}

.practice-gallery__item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #eef0f6;
    box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.1);
}

.practice-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.practice-gallery__item:nth-child(2),
.practice-gallery__item:nth-child(5),
.practice-gallery__item:nth-child(6) {
    grid-column: span 2;
}

.practice-gallery__item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.practice-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.6s ease;
}

header.masthead .masthead-card__photo-picture {
    display: block;
}

header.masthead .masthead-card__doctor {
    margin: -0.5rem 0 0.75rem;
    font-size: 0.85rem;
}

.practice-gallery__item img.is-loading {
    opacity: 0;
}

.practice-gallery__item:hover img {
    transform: scale(1.035);
}

@media (max-width: 767.98px) {
    .practice-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(9rem, 32vw, 13rem);
        gap: 0.75rem;
    }

    .practice-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .practice-gallery__item:nth-child(2),
    .practice-gallery__item:nth-child(5),
    .practice-gallery__item:nth-child(6) {
        grid-column: span 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .practice-gallery__item img {
        transition: none;
    }
}
