﻿
/* ==========================================
   METUKTAKIM - GALLERY V2
   COMPLETE STYLESHEET
========================================== */

body.gallery-page {
    --gallery-gold: #c49b58;
    --gallery-dark: #15120f;
    --gallery-text: #f4eee5;
    margin: 0;
    background: var(--gallery-dark);
    color: var(--gallery-text);
    direction: rtl;
}

    body.gallery-page *,
    body.gallery-page *::before,
    body.gallery-page *::after {
        box-sizing: border-box;
    }

    /* ==========================================
   HEADER
========================================== */

    body.gallery-page .gallery-header {
        position: relative;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 90px;
        padding: 10px 6%;
        background: #12100e;
        border-bottom: 1px solid rgba(196, 155, 88, 0.22);
    }

    /* LOGO */

    body.gallery-page .gallery-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 155px;
        flex: 0 0 155px;
        text-decoration: none;
    }

        body.gallery-page .gallery-logo img {
            display: block;
            width: 155px;
            max-width: 100%;
            height: 70px;
            object-fit: contain;
        }

    /* NAVIGATION */

    body.gallery-page .gallery-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 32px;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        background: transparent;
        border: 0;
    }

        body.gallery-page .gallery-nav > a,
        body.gallery-page .gallery-dropdown-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 0;
            margin: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            color: #f4eee5;
            font-family: inherit;
            font-size: 17px;
            font-weight: 500;
            line-height: 1.5;
            text-decoration: none;
            white-space: nowrap;
            cursor: pointer;
            transition: color 0.25s ease;
        }

            body.gallery-page .gallery-nav > a:hover,
            body.gallery-page .gallery-nav > a.active,
            body.gallery-page .gallery-dropdown-toggle:hover,
            body.gallery-page .gallery-dropdown.open > .gallery-dropdown-toggle {
                color: var(--gallery-gold);
            }

    /* SERVICES DROPDOWN */

    body.gallery-page .gallery-dropdown {
        position: relative;
        display: block;
        width: auto;
    }

    body.gallery-page .gallery-dropdown-toggle svg {
        width: 16px;
        height: 16px;
        transition: transform 0.25s ease;
    }

    body.gallery-page .gallery-dropdown.open
    .gallery-dropdown-toggle svg {
        transform: rotate(180deg);
    }

    body.gallery-page .gallery-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        display: none;
        flex-direction: column;
        min-width: 215px;
        width: max-content;
        max-width: 280px;
        padding: 10px;
        margin: 0;
        background: #211b16;
        border: 1px solid rgba(196, 155, 88, 0.35);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        z-index: 1100;
    }

    body.gallery-page .gallery-dropdown.open
    .gallery-dropdown-menu,
    body.gallery-page .gallery-dropdown:hover
    .gallery-dropdown-menu,
    body.gallery-page .gallery-dropdown:focus-within
    .gallery-dropdown-menu {
        display: flex;
    }

    body.gallery-page .gallery-dropdown-menu a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        background: transparent;
        color: #f4eee5;
        font-family: inherit;
        font-size: 15px;
        font-weight: 400;
        text-align: right;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease;
    }

        body.gallery-page .gallery-dropdown-menu a:hover {
            background: rgba(196, 155, 88, 0.12);
            color: var(--gallery-gold);
        }

    /* MOBILE MENU BUTTON */

    body.gallery-page .gallery-menu-toggle {
        display: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        background: transparent;
        color: var(--gallery-gold);
        border: 1px solid rgba(196, 155, 88, 0.6);
        border-radius: 5px;
        cursor: pointer;
    }

        body.gallery-page .gallery-menu-toggle svg {
            width: 24px;
            height: 24px;
        }

    /* ==========================================
   HERO
========================================== */

    body.gallery-page .gallery-hero {
        padding: 105px 20px 75px;
        text-align: center;
        background: radial-gradient( ellipse at 50% 0%, rgba(196, 155, 88, 0.10), transparent 60% ), #15120f;
    }

    body.gallery-page .gallery-eyebrow {
        display: block;
        color: var(--gallery-gold);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 4px;
        direction: ltr;
    }

    body.gallery-page .gallery-hero h1 {
        margin: 22px 0;
        color: #fff;
        font-size: clamp(35px, 4.4vw, 66px);
        font-weight: 600;
        line-height: 1.3;
    }

        body.gallery-page .gallery-hero h1 em,
        body.gallery-page .gallery-cta h2 em {
            font-style: normal;
            color: var(--gallery-gold);
        }

    body.gallery-page .gallery-hero p {
        max-width: 680px;
        margin: 0 auto;
        color: #d8cfc2;
        font-size: 18px;
        line-height: 1.95;
    }

    body.gallery-page .gallery-gold-line {
        width: 75px;
        height: 2px;
        margin: 35px auto 0;
        background: var(--gallery-gold);
    }

    /* ==========================================
   GALLERY SECTION
========================================== */

    body.gallery-page .gallery-section {
        width: min(1440px, 92%);
        margin: 0 auto;
        padding: 0 0 110px;
    }

    /* FILTERS */

    body.gallery-page .gallery-filters {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 48px;
    }

    body.gallery-page .gallery-filter {
        padding: 12px 24px;
        background: transparent;
        color: #eee6db;
        border: 1px solid rgba(196, 155, 88, 0.4);
        border-radius: 40px;
        font-family: inherit;
        font-size: 15px;
        cursor: pointer;
        transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    }

        body.gallery-page .gallery-filter:hover,
        body.gallery-page .gallery-filter.active {
            background: var(--gallery-gold);
            border-color: var(--gallery-gold);
            color: #17120c;
        }

    /* IMAGE GRID */

    body.gallery-page .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        align-items: start;
    }

    body.gallery-page .gallery-item {
        position: relative;
        display: block;
        min-width: 0;
        margin: 0;
        padding: 10px 10px 0;
        background: #201b17;
        border: 1px solid rgba(196, 155, 88, 0.16);
        overflow: hidden;
        cursor: zoom-in;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

        body.gallery-page .gallery-item[hidden],
        body.gallery-page .gallery-empty[hidden] {
            display: none !important;
        }

        body.gallery-page .gallery-item:hover {
            transform: translateY(-5px);
            border-color: rgba(196, 155, 88, 0.7);
        }

        body.gallery-page .gallery-item img {
            display: block;
            width: 100%;
            height: 310px;
            object-fit: contain;
            background: #120f0d;
            transition: transform 0.4s ease;
        }

        body.gallery-page .gallery-item:hover img {
            transform: scale(1.025);
        }

        body.gallery-page .gallery-item figcaption {
            padding: 17px 8px 19px;
            color: #eadcc9;
            font-size: 15px;
            text-align: center;
        }

    body.gallery-page .gallery-empty {
        margin: 40px auto;
        color: #d8cfc2;
        text-align: center;
    }

    /* ==========================================
   CONTACT CTA
========================================== */

    body.gallery-page .gallery-cta {
        padding: 100px 20px;
        text-align: center;
        background: #201a15;
        border-top: 1px solid rgba(196, 155, 88, 0.2);
    }

        body.gallery-page .gallery-cta h2 {
            margin: 20px 0;
            color: #fff;
            font-size: clamp(30px, 3.4vw, 48px);
            font-weight: 600;
        }

        body.gallery-page .gallery-cta p {
            color: #ddd1c1;
            font-size: 17px;
            line-height: 1.8;
        }

    body.gallery-page .gallery-cta-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
        padding: 17px 30px;
        background: var(--gallery-gold);
        color: #16110d;
        border-radius: 3px;
        font-family: inherit;
        font-weight: 700;
        text-decoration: none;
        transition: transform 0.25s ease, background 0.25s ease;
    }

        body.gallery-page .gallery-cta-button:hover {
            transform: translateY(-3px);
            background: #dfb979;
        }

        body.gallery-page .gallery-cta-button svg {
            width: 18px;
        }

    /* ==========================================
   FOOTER
========================================== */

    body.gallery-page .gallery-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 28px 6%;
        background: #110f0d;
        color: #cbbda9;
        font-size: 14px;
    }

    body.gallery-page .gallery-footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 22px;
    }

    body.gallery-page .gallery-footer a {
        color: inherit;
        text-decoration: none;
    }

        body.gallery-page .gallery-footer a:hover {
            color: var(--gallery-gold);
        }

    /* ==========================================
   LIGHTBOX
========================================== */

    body.gallery-page.gallery-modal-open {
        overflow: hidden;
    }

    body.gallery-page .gallery-lightbox {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 70px 65px 45px;
        background: rgba(7, 6, 5, 0.97);
        z-index: 99999;
    }

        body.gallery-page .gallery-lightbox.open {
            display: flex;
        }

    body.gallery-page .gallery-lightbox-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 100%;
        max-height: 100%;
        text-align: center;
    }

        body.gallery-page .gallery-lightbox-content img {
            display: block;
            max-width: 100%;
            max-height: calc(100dvh - 175px);
            width: auto;
            height: auto;
            object-fit: contain;
        }

        body.gallery-page .gallery-lightbox-content p {
            margin: 0;
            color: #f4eee5;
            font-size: 17px;
        }

        body.gallery-page .gallery-lightbox-content span {
            color: var(--gallery-gold);
            font-size: 13px;
            direction: ltr;
        }

    body.gallery-page .gallery-lightbox button {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        padding: 0;
        background: rgba(196, 155, 88, 0.15);
        color: #fff;
        border: 1px solid rgba(196, 155, 88, 0.45);
        border-radius: 50%;
        cursor: pointer;
    }

        body.gallery-page .gallery-lightbox button:hover {
            background: var(--gallery-gold);
            color: #111;
        }

    body.gallery-page .gallery-lightbox-close {
        top: 20px;
        left: 20px;
    }

    body.gallery-page .gallery-lightbox-prev {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    body.gallery-page .gallery-lightbox-next {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* ==========================================
   ACCESSIBILITY & FOCUS
========================================== */

    body.gallery-page .gallery-item:focus-visible,
    body.gallery-page .gallery-filter:focus-visible,
    body.gallery-page .gallery-nav button:focus-visible,
    body.gallery-page .gallery-menu-toggle:focus-visible,
    body.gallery-page a:focus-visible {
        outline: 2px solid var(--gallery-gold);
        outline-offset: 4px;
    }

    /* ==========================================
   SHARED FLOATING CONTROLS

   contact.js and accessibility.js remain
   responsible for creating their own widgets.
========================================== */

    body.gallery-page .gallery-header,
    body.gallery-page .gallery-hero,
    body.gallery-page .gallery-section {
        overflow: visible;
    }

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    body.gallery-page .gallery-nav {
        gap: 18px;
    }

        body.gallery-page .gallery-nav > a,
        body.gallery-page .gallery-dropdown-toggle {
            font-size: 15px;
        }

    body.gallery-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 760px) {

    body.gallery-page .gallery-header {
        min-height: 76px;
        padding: 8px 5%;
    }

    body.gallery-page .gallery-logo {
        width: 120px;
        flex: 0 0 120px;
    }

        body.gallery-page .gallery-logo img {
            width: 120px;
            height: 60px;
        }

    body.gallery-page .gallery-menu-toggle {
        display: flex;
    }

    body.gallery-page .gallery-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 15px 6% 25px;
        margin: 0;
        background: #17130f;
        border-bottom: 1px solid rgba(196, 155, 88, 0.5);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    }

        body.gallery-page .gallery-nav.open {
            display: flex;
        }

        body.gallery-page .gallery-nav > a,
        body.gallery-page .gallery-dropdown-toggle {
            display: flex;
            justify-content: flex-start;
            width: 100%;
            padding: 14px 0;
            font-size: 16px;
            text-align: right;
        }

    body.gallery-page .gallery-dropdown {
        width: 100%;
    }

    body.gallery-page .gallery-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 5px 12px;
        margin-bottom: 8px;
        background: #211b16;
        border: 1px solid rgba(196, 155, 88, 0.2);
        box-shadow: none;
    }

    body.gallery-page .gallery-dropdown.open
    .gallery-dropdown-menu {
        display: flex;
    }

    body.gallery-page .gallery-dropdown:hover
    .gallery-dropdown-menu,
    body.gallery-page .gallery-dropdown:focus-within
    .gallery-dropdown-menu {
        display: none;
    }

    body.gallery-page .gallery-dropdown.open
    .gallery-dropdown-menu {
        display: flex;
    }

    body.gallery-page .gallery-dropdown-menu a {
        padding: 12px;
        font-size: 15px;
    }

    /* HERO */

    body.gallery-page .gallery-hero {
        padding: 75px 22px 55px;
    }

        body.gallery-page .gallery-hero p {
            font-size: 16px;
        }

    /* GALLERY */

    body.gallery-page .gallery-section {
        width: 94%;
        padding-bottom: 70px;
    }

    body.gallery-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.gallery-page .gallery-item {
        padding: 5px 5px 0;
    }

        body.gallery-page .gallery-item img {
            height: 220px;
        }

        body.gallery-page .gallery-item figcaption {
            padding: 12px 4px 14px;
            font-size: 13px;
        }

    body.gallery-page .gallery-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    body.gallery-page .gallery-filter {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* CTA */

    body.gallery-page .gallery-cta {
        padding: 75px 22px;
    }

    /* FOOTER */

    body.gallery-page .gallery-footer {
        flex-direction: column;
        text-align: center;
    }

    /* LIGHTBOX */

    body.gallery-page .gallery-lightbox {
        padding: 75px 45px 55px;
    }

    body.gallery-page .gallery-lightbox-content img {
        max-height: calc(100dvh - 200px);
    }

    body.gallery-page .gallery-lightbox button {
        width: 35px;
        height: 35px;
    }

    body.gallery-page .gallery-lightbox-prev {
        right: 5px;
    }

    body.gallery-page .gallery-lightbox-next {
        left: 5px;
    }
}

/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 400px) {

    body.gallery-page .gallery-item img {
        height: 170px;
    }

    body.gallery-page .gallery-item figcaption {
        font-size: 12px;
    }

    body.gallery-page .gallery-filter {
        padding: 9px 11px;
        font-size: 12px;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    body.gallery-page *,
    body.gallery-page *::before,
    body.gallery-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   GALLERY - SAME NAVBAR AS HOME
========================================= */

body.gallery-page .site-navbar-logo {
    width: 220px;
    height: 76px;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

    body.gallery-page .site-navbar-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
    }

body.gallery-page .site-navbar-inner {
    width: 100%;
    max-width: none;
    padding-right: 12px;
    padding-left: 35px;
}

/* SERVICES DROPDOWN */

body.gallery-page .nav-services {
    position: relative;
    display: flex;
    align-items: center;
}

body.gallery-page .nav-services-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

    body.gallery-page .nav-services-toggle:hover,
    body.gallery-page .nav-services.is-open .nav-services-toggle {
        color: #d4af70;
    }

body.gallery-page .nav-services-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    padding: 10px;
    background: #191715;
    border: 1px solid rgba(212,175,112,.38);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 10000;
}

    body.gallery-page .nav-services-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 7px;
        color: #f4eee5;
        text-decoration: none;
        font-size: 15px;
        text-align: right;
        white-space: nowrap;
    }

        body.gallery-page .nav-services-menu a:hover {
            background: rgba(212,175,112,.13);
            color: #e5c28a;
        }

body.gallery-page .nav-services.is-open .nav-services-menu,
body.gallery-page .nav-services:focus-within .nav-services-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: hover) and (min-width: 801px) {
    body.gallery-page .nav-services:hover .nav-services-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* FLOATING BUTTONS */

body.gallery-page .whatsapp-button {
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    bottom: 22px !important;
    top: auto !important;
    width: 60px !important;
    height: 60px !important;
    z-index: 5000 !important;
}

body.gallery-page a.metuktakim-instagram {
    position: fixed !important;
    right: 92px !important;
    left: auto !important;
    bottom: 22px !important;
    top: auto !important;
    width: 60px !important;
    height: 60px !important;
    z-index: 5000 !important;
}

body.gallery-page #accessibility-toggle {
    position: fixed !important;
    right: 164px !important;
    left: auto !important;
    bottom: 22px !important;
    top: auto !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #d4af70 !important;
    color: #17130f !important;
    border: 1px solid #e5c28a !important;
    border-radius: 50% !important;
    z-index: 5000 !important;
    cursor: pointer;
}

body.gallery-page #accessibility-menu {
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    bottom: 95px !important;
    top: auto !important;
    width: min(390px, calc(100vw - 30px)) !important;
    max-height: min(520px, calc(100dvh - 115px));
    overflow-y: auto;
    z-index: 5001 !important;
}

    body.gallery-page #accessibility-menu[hidden] {
        display: none !important;
    }

/* MOBILE */

@media (max-width: 800px) {
    body.gallery-page .site-navbar-inner {
        padding-right: 8px;
        padding-left: 15px;
    }

    body.gallery-page .site-navbar-logo {
        width: 155px !important;
        height: 60px !important;
    }

    body.gallery-page .nav-services {
        width: 100%;
        display: block;
    }

    body.gallery-page .nav-services-toggle {
        width: 100%;
        justify-content: space-between;
        text-align: right;
        padding: 13px 15px;
    }

    body.gallery-page .nav-services-menu {
        position: static;
        display: none;
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(212,175,112,.06);
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    body.gallery-page .nav-services.is-open .nav-services-menu {
        display: flex;
    }

    body.gallery-page .nav-services-menu a {
        padding: 13px 24px;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    body.gallery-page .whatsapp-button {
        right: 12px !important;
        bottom: 15px !important;
        width: 52px !important;
        height: 52px !important;
    }

    body.gallery-page a.metuktakim-instagram {
        right: 76px !important;
        bottom: 15px !important;
        width: 52px !important;
        height: 52px !important;
    }

    body.gallery-page #accessibility-toggle {
        right: 140px !important;
        bottom: 15px !important;
        width: 52px !important;
        height: 52px !important;
    }

    body.gallery-page #accessibility-menu {
        right: 12px !important;
        bottom: 80px !important;
        width: min(360px, calc(100vw - 24px)) !important;
    }
}
