/* ===== GALLERY PAGE ===== */
.gallery__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-title {
    margin-bottom: 40px;
}

.gallery,
.mob__gallery {
    background-color: transparent;
    padding-top: 80px;
    margin-bottom: 60px;
}

/* BUTTON ON GALLERY */
.gallery-filters-wrapper {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.gallery-filters-toggle {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(121, 121, 121, 0.1);
    transition: background-color 0.3s;
}

.gallery-filters {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Активное состояние открытого фильтра */
.gallery-filters-wrapper.open .gallery-filters {
    display: flex;
    transition: all 0.3s ease;
    justify-content: center;
}

.filter-btn {
    color: #212121;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #fff4e5;
    border: 1px solid #ffebce;
    border-radius: 5px;
    box-shadow: 1px 1px 1px rgba(121, 121, 121, 0.1);
    transition:
        background-color 0.3s,
        box-shadow 0.3s;
}

.filter-btn:hover {
    background-color: #fce9ce;
}

.filter-btn.active {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
}

.gallery__photo img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ========== ZOOM ============== */
.gallery-img-zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
    transition: transform 0.3s ease;
}

body.zoom-active {
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* Прозрачный черный фот при увеличении фото */
body.zoom-active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 249, 243, 0.7);
}

/* ========= ARROW + CLOSE ========== */
.gallery-arrow,
.gallery-close {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(31, 31, 31, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 100;
    transition: all 0.25s ease;
}

.gallery-arrow svg,
.gallery-close svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    margin: 0;
}

.gallery-arrow:hover,
.gallery-close:hover,
.gallery-close:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-arrow:hover svg,
.gallery-close:hover svg {
    stroke: #111;
}

.gallery-arrow--left {
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
}

.gallery-arrow--right {
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
}

.gallery-close {
    top: 40px;
    right: 40px;
}

/* Скрываем стрелки и крестик по умолчанию */
.gallery-arrow--left,
.gallery-arrow--right,
.gallery-close {
    display: none;
}

/* Показываем только в режиме зума */
body.zoom-active .gallery-arrow--left,
body.zoom-active .gallery-arrow--right,
body.zoom-active .gallery-close {
    display: flex;
}


/* ===== END GALLERY PAGE ===== */



/* ===== LINK ON GALLERY ===== */
.gallery-link {
    padding-top: 10px;
    padding-bottom: 30px;
    text-align: center;
    background: linear-gradient(to right, #ffe2c5, #fff1de);
    margin-top: -40px;
    margin-bottom: 60px;
}

.gallery-link-title {
    position: relative;
    display: inline-block;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    cursor: pointer;
    color: #1b1f2b;
    transition: color 0.3s ease;
}

/* Стрелка над заголовком */
.gallery-link-title::before {
    content: "➜";
    display: block;
    font-size: 36px;
    color: #1b1f2b;
    margin-bottom: 8px;
    opacity: 0.8;
    transform: translateY(5px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-link-title:hover {
    color: #000000;
}

.gallery-link-title:hover::before {
    transform: translateY(-5px);
    opacity: 1;
}

.gallery-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery-flex img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-flex img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}