
.zm-gallery {
    --zm-orange: #f58220;
    --zm-dark: #17191c;
    --zm-gray: #777d86;
    background: #fff;
    color: var(--zm-dark);
    font-family: inherit;
    padding-bottom: 65px;
}

.zm-gallery * { box-sizing: border-box; }

.zm-gallery-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(16,18,21,.94),
        rgba(16,18,21,.62)),
        url('/Content/31/Gallery/gallery-cover.jpg') center 48%/cover;
    color: #fff;
}

.zm-gallery-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: -30px;
    width: 15%;
    height: 100%;
    background: rgba(245,130,32,.72);
    transform: skewX(-28deg);
    transform-origin: bottom;
    pointer-events: none;
}

.zm-gallery-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1310px;
    margin: auto;
    padding: 48px 25px 43px;
}

.zm-gallery-kicker {
    color: var(--zm-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.zm-gallery-hero h1 {
    color: #fff;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.zm-gallery-rule {
    display: block;
    width: 51px;
    height: 3px;
    background: var(--zm-orange);
    margin: 15px 0;
}

.zm-gallery-hero p {
    color: #f2f2f2;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.zm-gallery-content {
    max-width: 1310px;
    padding: 0 25px;
    margin: 0 auto;
}

.zm-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0 20px;
}

.zm-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.zm-gallery-filters button {
    border: 1px solid #ececef;
    border-radius: 24px;
    background: #f5f5f6;
    color: #373940;
    padding: 10px 17px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.zm-gallery-filters button:hover {
    border-color: var(--zm-orange);
    color: var(--zm-orange);
}

.zm-gallery-filters button.active {
    background: var(--zm-orange);
    border-color: var(--zm-orange);
    color: #fff;
}

.zm-gallery-total {
    color: #92959c;
    font-size: 12px;
    white-space: nowrap;
}

.zm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.zm-gallery-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1.18;
    border: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #e8e8e8;
    text-align: left;
    cursor: pointer;
}

.zm-gallery-card[hidden] { display: none; }

.zm-gallery-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--zm-orange);
    transition: width .3s ease;
}

.zm-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.zm-gallery-card::after {
    content: "";
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
    pointer-events: none;
}

.zm-gallery-card__caption {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 40px;
    bottom: 14px;
    color: #fff;
}

.zm-gallery-card__caption small {
    display: block;
    color: #ffb16f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.zm-gallery-card__caption strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.zm-gallery-card__zoom {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    transition: .2s;
}

.zm-gallery-card:hover::before { width: 100%; }
.zm-gallery-card:hover img { transform: scale(1.06); }

.zm-gallery-card:hover .zm-gallery-card__zoom {
    background: var(--zm-orange);
    border-color: var(--zm-orange);
}

.zm-gallery-card:focus-visible,
.zm-gallery-filters button:focus-visible {
    outline: 3px solid var(--zm-orange);
    outline-offset: 3px;
}

.zm-gallery-empty {
    padding: 50px 10px;
    text-align: center;
    color: var(--zm-gray);
}

/* Fotoğraf görüntüleyici */
.zm-gallery-lightbox[hidden] { display: none; }

.zm-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 80px;
    background: rgba(12,14,17,.97);
}

.zm-gallery-lightbox figure {
    margin: 0;
    max-width: 1050px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.zm-lightbox-image {
    max-width: 100%;
    max-height: calc(100% - 75px);
    object-fit: contain;
}

.zm-gallery-lightbox figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 15px;
    text-align: center;
    color: #fff;
}

.zm-gallery-lightbox figcaption small {
    color: var(--zm-orange);
    font-size: 10px;
    letter-spacing: 1.2px;
}

.zm-gallery-lightbox figcaption strong { font-size: 15px; }
.zm-gallery-lightbox figcaption span { color: #aaa; font-size: 12px; }

.zm-lightbox-close,
.zm-lightbox-prev,
.zm-lightbox-next {
    position: absolute;
    border: 1px solid #444;
    background: #202226;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.zm-lightbox-close:hover,
.zm-lightbox-prev:hover,
.zm-lightbox-next:hover {
    background: var(--zm-orange);
}

.zm-lightbox-close {
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

.zm-lightbox-prev,
.zm-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 55px;
    border-radius: 4px;
    font-size: 32px;
}

.zm-lightbox-prev { left: 20px; }
.zm-lightbox-next { right: 20px; }

.zm-lightbox-count {
    position: absolute;
    bottom: 24px;
    color: #aaa;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .zm-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zm-gallery-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .zm-gallery-hero__inner { padding: 36px 20px; }
    .zm-gallery-hero::after { width: 9%; opacity: .6; }
    .zm-gallery-content { padding: 0 16px; }

    .zm-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .zm-gallery-card { aspect-ratio: .95; }
    .zm-gallery-card__caption { left: 10px; bottom: 10px; }
    .zm-gallery-card__caption strong { font-size: 12px; }
    .zm-gallery-card__caption small { font-size: 8px; }
    .zm-gallery-card__zoom { right: 8px; bottom: 8px; }

    .zm-gallery-filters { gap: 7px; }
    .zm-gallery-filters button { padding: 9px 12px; }

    .zm-gallery-lightbox { padding: 65px 12px 85px; }
    .zm-lightbox-prev, .zm-lightbox-next {
        top: auto;
        bottom: 15px;
        transform: none;
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }

    .zm-lightbox-prev { left: calc(50% - 50px); }
    .zm-lightbox-next { right: calc(50% - 50px); }
    .zm-lightbox-count { bottom: 29px; }
}

@media (max-width: 380px) {
    .zm-gallery-grid { grid-template-columns: 1fr; }
    .zm-gallery-card { aspect-ratio: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
    .zm-gallery * { transition: none !important; }
}


/* ZMGM20 - Günlük galeri kartları */

.zmgm20-day-gallery {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 26px 48px;
    box-sizing: border-box;
    font-family: inherit;
}

.zmgm20-day-gallery__header {
    text-align: center;
    margin-bottom: 30px;
}

.zmgm20-day-gallery__eyebrow {
    display: inline-block;
    color: #f58220;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.zmgm20-day-gallery__header h2 {
    color: #222;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}

.zmgm20-day-gallery__line {
    display: block;
    width: 48px;
    height: 3px;
    background: #f58220;
    margin: 0 auto 12px;
    border-radius: 3px;
}

.zmgm20-day-gallery__header p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

.zmgm20-day-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.zmgm20-day-gallery__card {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 9px;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.zmgm20-day-gallery__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    color: inherit;
}

.zmgm20-day-gallery__image {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #eee;
}

.zmgm20-day-gallery__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .58),
        transparent 58%
    );
    pointer-events: none;
}

.zmgm20-day-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.zmgm20-day-gallery__card:hover .zmgm20-day-gallery__image img {
    transform: scale(1.045);
}

.zmgm20-day-gallery__date {
    position: absolute;
    z-index: 1;
    bottom: 15px;
    left: 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.zmgm20-day-gallery__content {
    padding: 17px 18px 19px;
}

.zmgm20-day-gallery__content h3 {
    color: #252525;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.zmgm20-day-gallery__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f58220;
    font-size: 13px;
    font-weight: 600;
}

.zmgm20-day-gallery__link span {
    font-size: 19px;
    transition: transform .2s ease;
}

.zmgm20-day-gallery__card:hover .zmgm20-day-gallery__link span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .zmgm20-day-gallery__grid {
        gap: 16px;
    }

    .zmgm20-day-gallery__image {
        height: 175px;
    }

    .zmgm20-day-gallery__content {
        padding: 14px;
    }

    .zmgm20-day-gallery__content h3 {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .zmgm20-day-gallery {
        padding: 28px 16px 36px;
    }

    .zmgm20-day-gallery__header h2 {
        font-size: 27px;
    }

    .zmgm20-day-gallery__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .zmgm20-day-gallery__image {
        height: 210px;
    }
}