
/* ==================================
   FORWARD GALLERY 2026
   ================================== */

.forward-gallery {
    width: 100%;
}

.forward-gallery__header {
    margin-bottom: 38px;
}

.forward-gallery__title {
    margin: 0 0 18px;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.15;
}

.forward-gallery__intro {
    max-width: 780px;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.forward-gallery__albums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.forward-gallery__album {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.forward-gallery__album:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .11);
}

.forward-gallery__album-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.forward-gallery__album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f2f5;
}

.forward-gallery__album-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.forward-gallery__album:hover .forward-gallery__album-image {
    transform: scale(1.045);
}

.forward-gallery__album-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #89919a;
    font-size: 24px;
    font-weight: 700;
}

.forward-gallery__album-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.forward-gallery__album-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.forward-gallery__album-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1180b7;
}

@media (max-width: 991px) {
    .forward-gallery__albums {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .forward-gallery__albums {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .forward-gallery__header {
        margin-bottom: 28px;
    }

    .forward-gallery__album-info {
        padding: 18px;
    }
}

/* Список альбомов */
.forward-gallery__content > .forward-gallery__album {
    min-width: 0;
}

.forward-gallery__content:not(:has(.forward-gallery__album-view)) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* Просмотр альбома */
.forward-gallery__back {
    display: inline-block;
    margin-bottom: 24px;
    color: #1180b7;
    text-decoration: none;
    font-weight: 600;
}

.forward-gallery__album-heading {
    margin: 0 0 16px;
    font-size: clamp(22px, 3vw, 26px);
    margin-bottom: 26px;
    font-weight: 700;
}

.forward-gallery__album-description {
    max-width: 850px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.forward-gallery__photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.forward-gallery__photo {
    min-width: 0;
    margin: 0;
}

/* Миниатюры */
.forward-gallery__photo-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #eef0f3;
}

.forward-gallery__photo-link picture {
    display: block;
    width: 100%;
    height: 100%;
}

.forward-gallery__photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forward-gallery__photo-link:hover img {
    transform: scale(1.035);
}

.forward-gallery__photo-caption {
    padding: 10px 2px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 991px) {
    .forward-gallery__photos,
    .forward-gallery__content:not(:has(.forward-gallery__album-view)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .forward-gallery__photos,
    .forward-gallery__content:not(:has(.forward-gallery__album-view)) {
        grid-template-columns: 1fr;
    }
}



.forward-gallery__photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.forward-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(9, 13, 22, .94);
}

.forward-lightbox.is-open {
    display: flex;
}

.forward-lightbox-open {
    overflow: hidden;
}

.forward-lightbox__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 130px);
    max-height: 100%;
    gap: 12px;
}

.forward-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.forward-lightbox__caption {
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.forward-lightbox__counter {
    color: #bbb;
    font-size: 13px;
}

.forward-lightbox button {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 25px;
}

.forward-lightbox button:hover {
    background: rgba(255, 255, 255, .25);
}

.forward-lightbox__close {
    top: 22px;
    right: 22px;
}

.forward-lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.forward-lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .forward-lightbox__content {
        max-width: calc(100% - 32px);
    }

    .forward-lightbox__image {
        max-height: 72vh;
    }

    .forward-lightbox__prev {
        left: 8px;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .forward-lightbox__next {
        right: 8px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
}
.forward-gallery__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.forward-gallery__breadcrumbs a {
    color: #1180b7;
    text-decoration: none;
}

.forward-gallery__breadcrumbs a:hover {
    text-decoration: underline;
}

.forward-gallery__breadcrumbs [aria-current="page"] {
    color: #333;
}

/* Ссылки и хлебные крошки галереи */

.forward-gallery__breadcrumbs a,
.forward-gallery__back,
.forward-gallery__album-more {
    color: #e30613;
    transition: color .2s ease;
}

.forward-gallery__breadcrumbs a:hover,
.forward-gallery__back:hover,
.forward-gallery__album-link:hover .forward-gallery__album-more {
    color: #b8000b;
}

/* Текущий пункт хлебных крошек */
.forward-gallery__breadcrumbs [aria-current="page"] {
    color: #333;
}