/* ================================================================
   TerraFloor — gallery-page.css
   ================================================================ */

.gallery-page {
    padding-block: 48px 100px;
}

.gallery-page__title {
    color: var(--color-black);
    font-size: 45px;
    line-height: 51px;
    font-weight: 600;
    margin: 0 0 40px;
}

/* ---- Табы ---- */
.gallery-page__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.gallery-tab {
 
    background: #f9f9f9;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-black);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;

}
.gallery-tab:hover    { background: var(--color-light-gray); }
.gallery-tab.is-active { background: #f6f0eb; }

/* ---- Селект мобайл ---- */
.gallery-page__select-wrap {
    display: none;
    position: relative;
    margin-bottom: 24px;
}
.gallery-page__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 50px;
    padding: 16px 48px 16px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-black);
    cursor: pointer;
}
.gallery-page__select-wrap svg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-gray);
}

/* ---- Сетка фото ---- */
.gallery-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ---- Фото ---- */
.gallery-photo {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
  
    display: block;
    
    background: linear-gradient(180deg, #F8F8F8 0%, #FDF9F6 100%);
    padding: 22px;

}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
       border-radius: 30px;
}
.gallery-photo:hover img { transform: scale(1.04); }

.gallery-photo__zoom {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-photo:hover .gallery-photo__zoom { opacity: 1; }

/* ---- Лайтбокс с навигацией ---- */
.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.lightbox__prev { left: -60px; }
.lightbox__next { right: -60px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.3); }

/* ================================================================
   Адаптив
   ================================================================ */
@media (max-width: 1024px) {
    .gallery-page__grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox__prev { left: -48px; }
    .lightbox__next { right: -48px; }

    .gallery-photo {
    border-radius: 30px;
    padding: 16px;
}
.gallery-photo img {
       border-radius: 20px;
}
}

@media (max-width: 768px) {
    .gallery-page__title   { font-size: 26px; margin-bottom: 24px; }
    .gallery-page__tabs    { display: none; }
    .gallery-page__select-wrap { display: block; }
    .gallery-page__grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-photo         { border-radius: 12px; }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
        .gallery-photo {
    border-radius: 20px;
     padding: 10px;
}
.gallery-photo img {
       border-radius: 10px;
}
}