.bshInstagram {
    padding-block: var(--bsh-section-y);
    overflow: hidden;
    background: var(--bsh-color-white);
}

.bshInstagram__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(12, clamp(46px, 3.1vw, 60px));
    gap: clamp(10px, 1vw, 20px) clamp(14px, 1.45vw, 28px);
    width: min(calc(100% - (var(--bsh-container-pad) * 2)), 1280px);
    margin-inline: auto;
}

.bshInstagram__content {
    position: relative;
    z-index: 2;
    display: flex;
    grid-column: 4 / span 5;
    grid-row: 9 / span 4;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(28px, 2.7vw, 48px);
    text-align: left;
}

.bshInstagram__label {
    margin: 0 0 clamp(12px, 1vw, 18px);
    color: var(--bsh-color-body);
    font-family: var(--bsh-font-body, 'Inter', sans-serif);
    font-size: clamp(11px, .72vw, 14px);
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bshInstagram__handle {
    max-width: 100%;
    margin: 0;
    color: var(--bsh-color-headline);
    font-size: clamp(42px, 3.5vw, 68px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .98;
    overflow-wrap: anywhere;
}

.bshInstagram__handle a,
.bshInstagram__handle span {
    color: inherit;
    text-decoration: none;
}

.bshInstagram__handle a {
    transition: color var(--bsh-transition-base);
}

.bshInstagram__handle a:hover,
.bshInstagram__handle a:focus-visible {
    color: var(--bsh-color-pastel-2);
}

.bshInstagram__headline {
    max-width: 460px;
    margin: clamp(16px, 1.35vw, 24px) 0 0;
    color: var(--bsh-color-pastel-2);
    font-family: var(--bsh-font-display, 'Indie Flower', cursive);
    font-size: var(--bsh-fs-subtitle);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
}

.bshInstagram__text {
    max-width: 520px;
    margin: clamp(10px, .8vw, 16px) 0 0;
    color: var(--bsh-color-body);
    line-height: 1.7;
}

.bshInstagram__image {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--bsh-color-pastel-1);
}

.bshInstagram__image--1 {
    grid-column: 4 / span 5;
    grid-row: 1 / span 8;
}

.bshInstagram__image--2 {
    grid-column: 2 / span 2;
    grid-row: 3 / span 3;
}

.bshInstagram__image--3 {
    grid-column: 2 / span 2;
    grid-row: 6 / span 3;
    width: 70%;
    justify-self: end;
}

.bshInstagram__image--4 {
    grid-column: 9 / span 3;
    grid-row: 1 / span 6;
}

.bshInstagram__image--5 {
    grid-column: 9 / span 3;
    grid-row: 7 / span 2;
    width: 90%;
}

.bshInstagram__image--6 {
    grid-column: 9 / span 2;
    grid-row: 10 / span 2;
    width: 76%;
}

.bshInstagram__media {
    position: absolute;
    inset: -10% 0;
    display: block;
}

.bshInstagram__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(.22, 1, .36, 1), filter 500ms ease;
}

.bshInstagram__hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--bsh-color-white);
    background: rgb(72 64 60 / .35);
    opacity: 0;
    transition: opacity var(--bsh-transition-base);
}

.bshInstagram__hover svg {
    width: 30px;
    height: 30px;
}

@media (hover: hover) and (pointer: fine) {
    .bshInstagram__image:hover .bshInstagram__photo,
    .bshInstagram__image:focus-visible .bshInstagram__photo {
        filter: saturate(.82);
        transform: scale(1.06);
    }

    .bshInstagram__image:hover .bshInstagram__hover,
    .bshInstagram__image:focus-visible .bshInstagram__hover {
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .bshInstagram__grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-template-rows: repeat(12, clamp(42px, 5.6vw, 58px));
    }

    .bshInstagram__image--1 {
        grid-column: 2 / span 5;
        grid-row: 1 / span 7;
    }

    .bshInstagram__content {
        grid-column: 2 / span 5;
        grid-row: 8 / span 5;
    }

    .bshInstagram__image--2 {
        grid-column: 1 / span 2;
        grid-row: 2 / span 3;
    }

    .bshInstagram__image--3 {
        grid-column: 1 / span 2;
        grid-row: 5 / span 3;
    }

    .bshInstagram__image--4 {
        grid-column: 7 / span 2;
        grid-row: 1 / span 4;
    }

    .bshInstagram__image--5 {
        grid-column: 7 / span 2;
        grid-row: 5 / span 2;
        width: 100%;
    }

    .bshInstagram__image--6 {
        grid-column: 7 / span 2;
        grid-row: 7 / span 2;
    }
}

@media (max-width: 700px) {
    .bshInstagram__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 12px;
    }

    .bshInstagram__image,
    .bshInstagram__content {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .bshInstagram__image--1 {
        grid-column: 1 / -1;
        aspect-ratio: 1;
    }

    .bshInstagram__content {
        grid-column: 1 / -1;
        padding: 28px 0 44px;
    }

    .bshInstagram__image--2,
    .bshInstagram__image--3,
    .bshInstagram__image--4,
    .bshInstagram__image--6 {
        aspect-ratio: 4 / 5;
    }

    .bshInstagram__image--5 {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .bshInstagram__handle {
        font-size: clamp(40px, 12vw, 58px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bshInstagram__photo,
    .bshInstagram__hover,
    .bshInstagram__handle a {
        transition: none;
    }
}
