/* ==========================================
   AZEM PASTANE
   VISUAL GALLERY DESIGN
========================================== */

.azem-gallery {
    --gallery-gold: var(--general);
    --gallery-dark: var(--text);
    --gallery-bg: #faf9f6;
    --gallery-muted: #737373;
    --gallery-border: #e5e1d9;

    padding: clamp(40px, 6vw, 90px) 0;
    background: var(--gallery-bg);
    color: var(--gallery-dark);
}

.azem-gallery,
.azem-gallery * {
    box-sizing: border-box;
}

.azem-gallery__container {
    width: 100%;
    max-width: 1320px;
    padding: 0 24px;
    margin: 0 auto;
}

.azem-gallery a {
    text-decoration: none;
}

.azem-gallery svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================
   ÜST BAŞLIK
========================================== */

.azem-gallery__header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: end;
    gap: 40px;

    padding-bottom: 35px;
    border-bottom: 1px solid var(--gallery-border);
}

.azem-gallery__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--gallery-dark);
}

.azem-gallery__eyebrow i {
    display: block;
    width: 35px;
    height: 3px;
    background: var(--gallery-gold);
}

.azem-gallery__heading h1 {
    margin: 0;

    font-family: inherit;
    font-size: clamp(36px, 5vw, 65px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
    color: var(--gallery-dark);
}

.azem-gallery__heading h1 em {
    position: relative;
    display: inline-block;
    isolation: isolate;
    font-style: normal;
}

.azem-gallery__heading h1 em::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 20%;
    background: var(--gallery-gold);
}

.azem-gallery__intro {
    max-width: 400px;
}

.azem-gallery__intro>span {
    display: block;
    margin-bottom: 12px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #8b6810;
}

.azem-gallery__intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--gallery-muted);
}

/* ==========================================
   GALERİ ÜST BİLGİ
========================================== */

.azem-gallery__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 26px 0;
}

.azem-gallery__toolbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.azem-gallery__toolbar-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--gallery-dark);
}

.azem-gallery__dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gallery-gold);
}

.azem-gallery__count {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gallery-muted);
    white-space: nowrap;
}

.azem-gallery__count strong {
    margin-right: 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--gallery-dark);
}

/* ==========================================
   GALERİ GRID
========================================== */

.azem-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.azem-gallery__item {
    min-width: 0;
    margin: 0;
}

.azem-gallery__link {
    position: relative;
    display: block;
    overflow: hidden;

    border-radius: 0 40px 0 0;
    background: var(--gallery-dark);

    transition: transform .35s ease,
        box-shadow .35s ease;
}

/* Sol taraftaki gold marka çizgisi */

.azem-gallery__link::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    bottom: 0;

    width: 4px;
    background: var(--gallery-gold);
}

/* ==========================================
   FOTOĞRAF BOYUTLANDIRMA
========================================== */

.azem-gallery__photo {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 4 / 3;

    background: #e9e5dd;
}

.azem-gallery__photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .6s ease;
}

/* ==========================================
   FOTOĞRAF HOVER EFEKTİ
========================================== */

.azem-gallery__overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(35, 35, 35, .32);

    opacity: 0;
    transition: opacity .3s ease;
}

.azem-gallery__zoom {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    border-radius: 50%;
    background: var(--gallery-gold);
    color: var(--gallery-dark);

    transform: scale(.8);
    transition: transform .3s ease;
}

.azem-gallery__zoom svg {
    width: 25px;
    height: 25px;
}

@media (hover: hover) {

    .azem-gallery__link:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(35, 35, 35, .12);
    }

    .azem-gallery__link:hover img {
        transform: scale(1.06);
    }

    .azem-gallery__link:hover .azem-gallery__overlay {
        opacity: 1;
    }

    .azem-gallery__link:hover .azem-gallery__zoom {
        transform: scale(1);
    }

}

/* ==========================================
   FOTOĞRAF ALT ETİKETİ
========================================== */

.azem-gallery__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-height: 58px;
    padding: 12px 16px 12px 20px;

    background: var(--gallery-dark);
    color: #fff;
}

.azem-gallery__caption-text {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.azem-gallery__number {
    font-size: 12px;
    font-weight: 800;
    color: var(--gallery-gold);
}

.azem-gallery__caption-text>span:last-child {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
}

.azem-gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex-shrink: 0;

    border: 1px solid rgba(245, 188, 28, .45);
    border-radius: 50%;
    color: var(--gallery-gold);

    transition: background .3s, color .3s;
}

.azem-gallery__arrow svg {
    width: 17px;
    height: 17px;
}

.azem-gallery__link:hover .azem-gallery__arrow {
    background: var(--gallery-gold);
    color: var(--gallery-dark);
}

/* ==========================================
   BOŞ GALERİ
========================================== */

.azem-gallery__empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--gallery-border);
    text-align: center;
}

.azem-gallery__empty svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    color: #8b6810;
}

.azem-gallery__empty h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gallery-dark);
}

.azem-gallery__empty p {
    margin: 0;
    color: var(--gallery-muted);
}

/* ==========================================
   GALERİ ALT / INSTAGRAM
========================================== */

.azem-gallery__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-top: 55px;
    padding: 35px;

    border-left: 4px solid var(--gallery-gold);
    background: #fff;
}

.azem-gallery__footer .azem-gallery__eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
}

.azem-gallery__footer h2 {
    margin: 0 0 10px;
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.03em;
    color: var(--gallery-dark);
}

.azem-gallery__footer p {
    max-width: 600px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gallery-muted);
}

.azem-gallery__instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 54px;
    padding: 14px 22px;
    flex-shrink: 0;

    background: var(--gallery-gold);
    color: var(--gallery-dark) !important;

    font-size: 13px;
    font-weight: 800;

    transition: background .3s, color .3s;
}

.azem-gallery__instagram:hover {
    background: var(--gallery-dark);
    color: var(--gallery-gold) !important;
}

.azem-gallery__link:focus-visible,
.azem-gallery__instagram:focus-visible {
    outline: 3px solid #96700d;
    outline-offset: 4px;
}

/* ==========================================
   FANCYBOX / TAM EKRAN GALERİ
   Fancybox 5
========================================== */

.fancybox__container.azem-lightbox {
    --fancybox-bg: rgba(15, 15, 15, .97);
    --fancybox-color: #ffffff;
    --f-button-color: #ffffff;
    --f-button-hover-color: #f5bc1c;
    --f-button-bg: rgba(255, 255, 255, .08);
    --f-button-hover-bg: rgba(245, 188, 28, .16);
}

.azem-lightbox .fancybox__caption {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: #ffffff;
}

.azem-lightbox .f-button[data-fancybox-close] {
    background: #f5bc1c;
    color: #232323;
}

.azem-lightbox .fancybox__nav .f-button {
    border-radius: 50%;
}

.azem-lightbox .fancybox__image {
    object-fit: contain;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .azem-gallery__container {
        max-width: 850px;
    }

    .azem-gallery__header {
        gap: 25px;
    }

    .azem-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .azem-gallery__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 28px;
    }

}

/* ==========================================
   MOBİL
========================================== */

@media (max-width: 767px) {

    .azem-gallery {
        padding: 35px 0 45px;
    }

    .azem-gallery__container {
        padding: 0 15px;
    }

    .azem-gallery__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-bottom: 25px;
    }

    .azem-gallery__eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .azem-gallery__eyebrow i {
        width: 25px;
    }

    .azem-gallery__heading h1 {
        font-size: clamp(32px, 7.5vw, 45px);
    }

    .azem-gallery__intro>span {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .azem-gallery__intro p {
        font-size: 14px;
        line-height: 1.8;
    }

    .azem-gallery__toolbar {
        padding: 20px 0;
    }

    .azem-gallery__toolbar-title h2 {
        font-size: 14px;
    }

    .azem-gallery__count {
        font-size: 9px;
    }

    .azem-gallery__count strong {
        font-size: 16px;
    }

    .azem-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }

    .azem-gallery__link {
        border-radius: 0 22px 0 0;
    }

    .azem-gallery__link::before {
        width: 3px;
    }

    .azem-gallery__photo {
        aspect-ratio: 1 / 1;
    }

    .azem-gallery__caption {
        min-height: 43px;
        padding: 8px 9px 8px 12px;
        gap: 5px;
    }

    .azem-gallery__caption-text {
        gap: 6px;
    }

    .azem-gallery__number {
        font-size: 10px;
    }

    .azem-gallery__caption-text>span:last-child {
        font-size: 8px;
        letter-spacing: .5px;
    }

    .azem-gallery__arrow {
        width: 25px;
        height: 25px;
    }

    .azem-gallery__arrow svg {
        width: 13px;
        height: 13px;
    }

    .azem-gallery__footer {
        margin-top: 35px;
        padding: 24px 20px;
    }

    .azem-gallery__footer h2 {
        font-size: 25px;
    }

    .azem-gallery__footer p {
        font-size: 13px;
    }

    .azem-gallery__instagram {
        width: 100%;
    }

}

/* Küçük telefonlar */

@media (max-width: 375px) {

    .azem-gallery__container {
        padding: 0 12px;
    }

    .azem-gallery__grid {
        gap: 12px 10px;
    }

    .azem-gallery__caption-text>span:last-child {
        font-size: 7px;
        letter-spacing: .3px;
    }

    .azem-gallery__caption {
        padding-left: 9px;
        padding-right: 6px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .azem-gallery *,
    .azem-gallery *::before,
    .azem-gallery *::after {
        transition: none !important;
        animation: none !important;
    }

}