.page__banner--imgback {
    /* height: 700px !important;  */

    &::before {
        opacity: 0.8 !important;
    }

    &::after {
        width: 0 !important;
    }
}

.special_container {
    width: calc(100% + 40px) !important;
    transform: translateX(-20px);
}

.section__header-wrapper {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    color: #ffffff !important;
    padding: 20px 20px 15px;
    border-radius: 12px;
    margin-bottom: 20px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section__header-wrapper a {
    max-height: 50px;
    width: 20%;
    margin-right: 7%;
    opacity: .8;
}

.photobank-masonry {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* Стили для колонок кирпичной кладки */
.photobank-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    /* Предотвращает нежелательное расширение */
}

.photobank-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    /* Минимальная высота карточки во время работы скелетона */
    min-height: 150px;

    box-shadow: -2px 0px 13px rgba(0, 0, 0, 0.10);
}

/* Скелетон мерцания */
.photobank-card__skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pbShimmer 1.5s infinite linear;
    z-index: 1;
}

@keyframes pbShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.photobank-card img {
    width: 100%;
    height: auto;
    /* Картинка сохраняет естественные пропорции */
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;

    pointer-events: none;
}

.photobank-card:hover img {
    transform: scale(1.05);
}

.photobank-card__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.photobank-card:hover .photobank-card__title {
    opacity: 1;
}

.photobank-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    max-height: 330px;
    overflow-y: auto;
}

.pb-tab.active {
    background: #D3089D !important;
    color: #fff !important;
}

.modal {
    padding: 0 !important;
}

#photoModal {
    z-index: 10000 !important;
}

.modal-backdrop {
    z-index: 9999 !important;
}

.modal_btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    padding: 10px;
    border: none !important;
    border-radius: 50%;
    background-color: transparent !important;

    transform: rotate(45deg);

    &::after {
        content: '';
        position: absolute;
        display: block;
        width: 2px;
        height: 18px;
        background-color: black;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    &::before {
        content: '';
        position: absolute;
        display: block;
        width: 18px;
        height: 2px;
        background-color: black;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    &:active {
        border: none !important;
        outline: none !important;
    }
}

.pg-btn {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pg-btn:hover {
    background: #f0f0f0;
}

.pg-btn.active {
    background: #D3089D;
    color: #fff;
    border-color: #D3089D;
}

@media (max-width: 576px) {
    .photobank-tabs {
        max-height: 235px;
    }

    .pb-tab {
        width: 100%;
    }
}

@media (max-width: 950px) {
    .section__header-wrapper {
        flex-direction: column;
        align-items: start;
    }

    .section__header-wrapper a {
        width: 80%;
    }

    .special_container {
        width: 100% !important; 
        transform: translateX(0);
    }
}

/* 
@media (max-width: 1280px) {
    .special_container {  
        width: 100%;
        max-width: 1032px !important; 
    }
} */