/* =========================================================
   UMAMİ RESTAURANT - GALERİ SAYFASI
   ========================================================= */

.gallery-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 155px 0 95px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(
            90deg,
            rgba(10, 14, 12, .99),
            rgba(17, 43, 28, .85)
        ),
        url("../images/logo.jpg") center / cover no-repeat;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(200, 165, 90, .15),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .06),
            rgba(0, 0, 0, .62)
        );
}

.gallery-hero::after {
    content: "";
    position: absolute;
    top: -170px;
    right: -170px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(236, 212, 147, .13);
    border-radius: 50%;
    box-shadow:
        0 0 0 75px rgba(236, 212, 147, .023),
        0 0 0 150px rgba(236, 212, 147, .012);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 840px;
}

.gallery-hero h1 {
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(56px, 8vw, 102px);
    font-weight: normal;
    line-height: .92;
}

.gallery-hero h1 span {
    display: block;
    color: var(--gold-light);
    font-style: italic;
}

.gallery-hero p {
    max-width: 710px;
    margin-top: 26px;
    color: #d2cfc7;
    font-size: 18px;
    line-height: 1.8;
}

.gallery-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 28px;
    margin-top: 35px;
}

.gallery-hero-notes span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b9b8b2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.gallery-hero-notes span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-light);
}

/* FILTER */

.gallery-section {
    padding: 100px 0 120px;
    background:
        radial-gradient(
            circle at 75% 12%,
            rgba(37, 86, 57, .15),
            transparent 34%
        ),
        var(--background);
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.gallery-filter-button {
    min-height: 45px;
    padding: 0 21px;
    border: 1px solid rgba(236, 212, 147, .23);
    border-radius: 999px;
    color: #cbc8c0;
    background: rgba(38, 85, 56, .12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    cursor: pointer;
    transition:
        color .25s,
        background .25s,
        border-color .25s,
        transform .25s;
}

.gallery-filter-button:hover,
.gallery-filter-button.active {
    color: #171a18;
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* MASONRY GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 70px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    grid-column: span 4;
    grid-row: span 6;
    overflow: hidden;
    border: 1px solid rgba(236, 212, 147, .16);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .20);
    cursor: pointer;
    transition:
        transform .35s,
        border-color .35s,
        box-shadow .35s,
        opacity .3s;
}

.gallery-item.wide {
    grid-column: span 8;
    grid-row: span 6;
}

.gallery-item.tall {
    grid-row: span 8;
}

.gallery-item.square {
    grid-row: span 6;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(236, 212, 147, .48);
    box-shadow: 0 25px 55px rgba(0, 0, 0, .34);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.gallery-item:hover img {
    transform: scale(1.055);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background:
        linear-gradient(
            to top,
            rgba(6, 10, 8, .96),
            rgba(6, 10, 8, .10) 62%,
            transparent
        );
    transition: background .35s;
}

.gallery-item:hover .gallery-overlay {
    background:
        linear-gradient(
            to top,
            rgba(6, 10, 8, .98),
            rgba(6, 10, 8, .18) 68%,
            transparent
        );
}

.gallery-category {
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-overlay h3 {
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
    line-height: 1.15;
}

.gallery-overlay p {
    max-width: 490px;
    margin-top: 8px;
    color: #bbbcb7;
    font-size: 13px;
}

.gallery-open-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(236, 212, 147, .38);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(11, 15, 13, .73);
    font-size: 20px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-open-icon {
    opacity: 1;
    transform: translateY(0);
}

/* INSTAGRAM */

.instagram-panel {
    position: relative;
    overflow: hidden;
    margin-top: 85px;
    padding: 55px;
    border: 1px solid rgba(236, 212, 147, .23);
    border-radius: 27px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(49, 112, 73, .27),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            rgba(23, 61, 41, .73),
            rgba(18, 23, 20, .98)
        );
    box-shadow: var(--shadow);
}

.instagram-panel::after {
    content: "@";
    position: absolute;
    top: 50%;
    right: 4%;
    color: rgba(236, 212, 147, .06);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 260px;
    line-height: 1;
    transform: translateY(-50%);
}

.instagram-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.instagram-panel h2 {
    margin-top: 12px;
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(37px, 5vw, 57px);
    font-weight: normal;
    line-height: 1.08;
}

.instagram-panel h2 span {
    color: var(--gold-light);
    font-style: italic;
}

.instagram-panel p {
    max-width: 650px;
    margin: 20px 0 28px;
    color: #c6c7c2;
}

/* LIGHTBOX */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    padding: 35px 100px;
    opacity: 0;
    background: rgba(5, 8, 7, .96);
    backdrop-filter: blur(14px);
    transition: opacity .3s, visibility .3s;
}

.gallery-lightbox.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-image-wrapper {
    position: relative;
    width: min(1150px, 100%);
    height: min(80vh, 850px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid rgba(236, 212, 147, .23);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .68);
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: -57px;
    width: min(760px, 90%);
    text-align: center;
    transform: translateX(-50%);
}

.lightbox-caption strong {
    display: block;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: normal;
}

.lightbox-caption span {
    display: block;
    margin-top: 4px;
    color: #a9aaa5;
    font-size: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(236, 212, 147, .34);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(20, 27, 23, .84);
    font-size: 24px;
    cursor: pointer;
    transition:
        color .25s,
        background .25s,
        transform .25s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #171a18;
    background: var(--gold-light);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(3px);
}

.lightbox-counter {
    position: absolute;
    top: 38px;
    left: 50%;
    color: #a8aaa5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    transform: translateX(-50%);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 360px;
    }

    .gallery-item,
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.square {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(3n + 1) {
        grid-row: span 2;
    }
}

@media (max-width: 700px) {
    .gallery-hero {
        min-height: 510px;
        padding: 130px 0 72px;
        text-align: center;
    }

    .gallery-hero h1 {
        font-size: 57px;
    }

    .gallery-hero-notes {
        justify-content: center;
    }

    .gallery-section {
        padding: 75px 0 90px;
    }

    .gallery-filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-filter-button {
        width: 100%;
        padding: 0 10px;
        font-size: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 390px;
        gap: 15px;
    }

    .gallery-item,
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.square,
    .gallery-item:nth-child(3n + 1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(odd) {
        min-height: 470px;
    }

    .gallery-overlay {
        padding: 23px;
    }

    .gallery-open-icon {
        opacity: 1;
        transform: none;
    }

    .instagram-panel {
        padding: 40px 22px;
        text-align: center;
    }

    .instagram-panel .button {
        width: 100%;
    }

    .gallery-lightbox {
        padding: 85px 13px 110px;
    }

    .lightbox-image-wrapper {
        height: 70vh;
    }

    .lightbox-close {
        top: 17px;
        right: 17px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 68px);
    }

    .lightbox-next {
        right: calc(50% - 68px);
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: none;
    }

    .lightbox-caption {
        bottom: -73px;
    }

    .lightbox-counter {
        top: 35px;
        left: 22px;
        transform: none;
    }
}

.gallery-empty-message{grid-column:1/-1;padding:70px 24px;text-align:center;border:1px dashed rgba(214,181,94,.35);border-radius:18px;background:rgba(255,255,255,.025)}.gallery-empty-message h3{margin:0 0 10px;color:#ead28e;font-family:Georgia,serif;font-size:28px}.gallery-empty-message p{margin:0;color:#b9bcb7}.gallery-item img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:700px){.gallery-grid{grid-auto-rows:auto!important}.gallery-item,.gallery-item:nth-child(odd){min-height:0!important;aspect-ratio:4/5}.gallery-item.wide{aspect-ratio:4/3}.gallery-filter{grid-template-columns:1fr 1fr!important;gap:8px}.gallery-filter-button{min-height:44px;height:auto!important;line-height:1.2}}
