/* Galeri — hakkimizda yapısı üzerine */

@import url('hakkimizda.css');

body:has(.gallery-page) {
    background: #f7f3ef;
}

.gallery-page {
    --about-brand: #491720;
    --about-brand-deep: #2d0e14;
    --about-gold: #c4a052;
    --about-ink: #1a1214;
    --about-muted: #5c4f52;
    --about-paper: #f7f3ef;
    --about-line: rgba(73, 23, 32, 0.12);
    --about-font-display: var(--font-display);
    --about-font-body: var(--font-body);
    color: var(--about-ink);
    background: var(--about-paper);
    overflow-x: clip;
}

.gallery-page.is-hidden {
    display: none;
}

.gallery-page .about-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

.gallery-page .about-hero__media {
    background: url('../uploads/about/hakkimizda-hero.jpg') center / cover no-repeat;
}

.gallery-intro {
    padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
}

.gallery-intro__head {
    max-width: 40rem;
    margin-bottom: clamp(28px, 4vw, 40px);
}

.gallery-intro__head p {
    margin: 14px 0 0;
    font: 400 1.02rem / 1.7 var(--about-font-body);
    color: var(--about-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    padding-bottom: clamp(48px, 7vw, 80px);
}

.gallery-item {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    border: 1px solid var(--about-line);
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}

.gallery-item.is-visible {
    opacity: 1;
    transform: none;
}

.gallery-item:hover {
    box-shadow: 0 18px 40px rgba(45, 14, 20, 0.12);
}

.gallery-item__media {
    aspect-ratio: 4 / 5;
    background: center / cover no-repeat #ddd;
    transform: scale(1.02);
    transition: transform 0.55s ease;
}

.gallery-item:hover .gallery-item__media {
    transform: scale(1.06);
}

.gallery-item__meta {
    padding: 16px 18px 18px;
    background: #fff;
}

.gallery-item__title {
    margin: 0;
    font: 500 1.1rem / 1.25 var(--about-font-display);
    color: var(--about-brand);
}

.gallery-item__caption {
    margin: 6px 0 0;
    font: 400 0.9rem / 1.5 var(--about-font-body);
    color: var(--about-muted);
}

.gallery-empty {
    margin: 0 0 clamp(48px, 7vw, 80px);
    padding: 28px;
    border: 1px dashed var(--about-line);
    font: 400 1rem / 1.6 var(--about-font-body);
    color: var(--about-muted);
    text-align: center;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 10, 13, 0.88);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__figure {
    margin: 0;
    max-width: min(960px, 100%);
    max-height: 90vh;
}

.gallery-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.gallery-lightbox__caption {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font: 400 0.95rem / 1.5 var(--about-font-body);
    text-align: center;
}

.gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-page .about-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
}
