.photo-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.photo-gallery__page { display: contents; }
.photo-gallery__footer { display: none; }

@media (max-width: 700px) {
    .photo-gallery.photo-gallery--home { padding: 64px 12px 0; }

    .photo-gallery--home .photo-gallery__title {
        margin: 0 0 32px;
        font-size: clamp(21px, 6.4vw, 24px);
        line-height: 1.2;
        text-align: center;
    }

    .photo-gallery--home .photo-gallery__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .photo-gallery--home .photo-gallery__slider.swiper .photo-gallery__grid {
        display: flex;
        gap: 0;
    }

    .photo-gallery--home .photo-gallery__page.swiper-slide {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        height: auto;
    }

    .photo-gallery--home .photo-gallery__item { border-radius: 8px; }

    .photo-gallery__footer:not([hidden]) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 12px;
        margin-top: 20px;
    }

    .photo-gallery__pagination:not([hidden]) {
        position: static;
        display: flex;
        flex: 1 1 104px;
        align-items: center;
        gap: 8px;
        min-width: 0;
        max-width: 160px;
    }

    .photo-gallery__pagination .swiper-pagination-bullet {
        position: relative;
        flex: 1 1 24px;
        height: 24px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        opacity: 1;
    }

    .photo-gallery__pagination .swiper-pagination-bullet::before {
        position: absolute;
        inset: calc(50% - 1px) 0 auto;
        height: 2px;
        background: #ccd3dd;
        content: "";
    }

    .photo-gallery__pagination .swiper-pagination-bullet-active { flex-grow: 2; }
    .photo-gallery__pagination .swiper-pagination-bullet-active::before { background: #09204b; }

    .photo-gallery__all {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 32px;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: none;
        color: #09204b;
        font: inherit;
        font-size: 14px;
        cursor: pointer;
    }

    .photo-gallery__arrow {
        display: grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border-radius: 50%;
        background: #09204b;
        color: #fff;
    }
}
