/* Foto galeri: albüm listesi + albüm detay + lightbox (yeni tasarım) */

/* Albüm kartı (kpl-card üzerine) */
.kpg-album {
    margin-top: 12px;
    box-shadow: 0 -7px 0 -4px #f3ecdb, 0 -13px 0 -8px #e7dcc2, var(--shadow);
}
.kpg-album:hover { box-shadow: 0 -7px 0 -4px #f3ecdb, 0 -13px 0 -8px #e7dcc2, var(--shadow-lg); }
.kpg-album .kpl-card__img::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 21, 14, .35) 0%, rgba(4, 21, 14, 0) 34%, rgba(4, 21, 14, 0) 62%, rgba(4, 21, 14, .45) 100%);
}
.kpg-tarih {
    position: absolute; left: 14px; top: 14px; z-index: 2; min-width: 50px; padding: 7px 8px 6px; border-radius: 14px; text-align: center;
    background: rgba(255, 255, 255, .94); color: var(--g-800); box-shadow: 0 8px 20px rgba(4, 21, 14, .25);
}
.kpg-tarih b { display: block; font-family: var(--serif); font-size: 1.22rem; line-height: 1; color: var(--g-700); }
.kpg-tarih small { display: block; margin-top: 2px; font-size: .62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-3); }
.kpg-adet {
    position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 800; color: #fff; background: rgba(4, 21, 14, .58); border: 1px solid rgba(233, 211, 154, .35);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.kpg-adet i { color: var(--gold-2); font-size: .72rem; }
.kpg-album__ac {
    position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gold-grad); color: var(--g-900); font-size: 1.1rem;
    box-shadow: 0 14px 30px rgba(4, 21, 14, .4); opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .3s ease;
}
.kpg-album:hover .kpg-album__ac, .kpg-album:focus-visible .kpg-album__ac { opacity: 1; transform: scale(1); }
.kpg-feature .kpl-feature__img .kpg-adet { top: 18px; right: 18px; }
.kpg-sayfa-bilgi { font-size: .82rem; font-weight: 700; color: var(--muted); }

/* Detay hero */
.kpg-hero { padding-bottom: 80px; }
.kpg-hero__in { position: relative; z-index: 3; }
.kpg-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
.kpg-hero__grid.is-tek { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.kpg-hero__txt { min-width: 0; }
.kpg-hero__lead { margin: -8px 0 22px; max-width: 680px; font-size: 1.08rem; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.kpg-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kpg-btn--cam { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(233, 211, 154, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kpg-btn--cam:hover { color: var(--gold-2); background: rgba(255, 255, 255, .16); }

.kpg-fan { position: relative; height: 340px; }
.kpg-fan__item {
    position: absolute; top: 50%; left: 50%; width: 250px; height: 300px; margin: -150px 0 0 -125px; padding: 0; border: 6px solid #fff; border-radius: 22px;
    overflow: hidden; cursor: zoom-in; background: linear-gradient(150deg, var(--g-600), var(--g-900));
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.kpg-fan__item img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.kpg-fan__item > i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: rgba(233, 211, 154, .45); }
.kpg-fan__item--1 { z-index: 3; transform: rotate(-3deg); }
.kpg-fan__item--2 { z-index: 2; transform: translateX(-92px) rotate(-12deg) scale(.9); }
.kpg-fan__item--3 { z-index: 1; transform: translateX(92px) rotate(10deg) scale(.9); }
.kpg-fan:hover .kpg-fan__item--1 { transform: rotate(0) translateY(-6px); }
.kpg-fan:hover .kpg-fan__item--2 { transform: translateX(-118px) rotate(-15deg) scale(.9); }
.kpg-fan:hover .kpg-fan__item--3 { transform: translateX(118px) rotate(13deg) scale(.9); }
.kpg-fan__sayi {
    position: absolute; right: 18px; bottom: 6px; z-index: 4; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; border-radius: 16px;
    background: var(--gold-grad); color: var(--g-900); font-size: .74rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.kpg-fan__sayi b { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0; }

/* Detay gövde */
.kpg-main .kpy-container { display: flex; flex-direction: column; gap: 30px; }
.kpg-about .kpd-prose { font-size: 1.02rem; }
.kpg-about .kpd-prose p:last-child { margin-bottom: 0; }
.kpg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kpg-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--serif); font-size: 1.7rem; color: var(--g-800); }
.kpg-head h2 em {
    font-style: normal; font-family: inherit; font-size: .9rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
    background: rgba(201, 165, 90, .16); color: var(--gold-3);
}
.kpg-view { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(201, 165, 90, .14); }
.kpg-view button {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent;
    color: var(--g-700); font-size: .82rem; font-weight: 800; transition: all .2s;
}
.kpg-view button i { color: var(--gold-3); }
.kpg-view button:hover { background: var(--silk); }
.kpg-view button.is-on { background: linear-gradient(135deg, var(--g-500), var(--g-800)); color: #fff; box-shadow: 0 6px 16px rgba(14, 70, 51, .25); }
.kpg-view button.is-on i { color: var(--gold-2); }

/* Fotoğraf duvarı: serbest (masonry) / ızgara */
.kpg-masonry { column-count: 3; column-gap: 18px; }
.kpg-item {
    position: relative; display: block; margin: 0 0 18px; border-radius: 18px; overflow: hidden; break-inside: avoid; -webkit-column-break-inside: avoid;
    background: linear-gradient(135deg, var(--g-600), var(--g-900)); box-shadow: var(--shadow); cursor: zoom-in;
    transition: transform .3s ease, box-shadow .3s ease;
}
.kpg-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kpg-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.kpg-item img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transition: transform .6s ease; }
.kpg-item:hover img { transform: scale(1.05); }
.kpg-item::after {
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s ease;
    background: linear-gradient(180deg, rgba(4, 21, 14, .25) 0%, rgba(4, 21, 14, 0) 40%, rgba(4, 21, 14, .75) 100%);
}
.kpg-item:hover::after, .kpg-item:focus-visible::after { opacity: 1; }
.kpg-item__ph { display: none; }
.kpg-item.is-bozuk { aspect-ratio: 4 / 3; cursor: default; }
.kpg-item.is-bozuk .kpg-item__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: rgba(233, 211, 154, .45); }
.kpg-item__no {
    position: absolute; left: 12px; top: 12px; z-index: 3; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 800; color: #fff;
    background: rgba(4, 21, 14, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease;
}
.kpg-item__zoom {
    position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-grad); color: var(--g-900); font-size: .9rem; opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .3s ease;
}
.kpg-item__cap {
    position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; font-weight: 700; font-size: .86rem; line-height: 1.35; color: #fff;
    opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kpg-item:hover .kpg-item__no, .kpg-item:focus-visible .kpg-item__no,
.kpg-item:hover .kpg-item__cap, .kpg-item:focus-visible .kpg-item__cap { opacity: 1; transform: none; }
.kpg-item:hover .kpg-item__zoom, .kpg-item:focus-visible .kpg-item__zoom { opacity: 1; transform: scale(1); }

.kpg-masonry.is-grid { column-count: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpg-masonry.is-grid .kpg-item { margin: 0; aspect-ratio: 1 / 1; border-radius: 16px; }
.kpg-masonry.is-grid .kpg-item img { position: absolute; inset: 0; height: 100%; object-fit: cover; }

.kpg-share .kpd-card__head h2 { font-size: 1.3rem; }
.kpg-related .kpl-head { align-items: center; }
.kpg-related .kpd-link { margin-top: 0; }

/* Lightbox */
html.kpg-kilit, html.kpg-kilit body { overflow: hidden; }
.kpg-lb {
    position: fixed; inset: 0; z-index: 2050; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff;
    background: radial-gradient(900px 500px at 50% 0%, rgba(201, 165, 90, .12), transparent 60%), rgba(3, 14, 10, .96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease;
    touch-action: pan-y pinch-zoom; overscroll-behavior: contain;
}
.kpg-lb[hidden] { display: none; }
.kpg-lb.is-open { opacity: 1; }
.kpg-lb__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top)); }
.kpg-lb__sayac {
    flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 211, 154, .25); font-variant-numeric: tabular-nums;
}
.kpg-lb__sayac b { color: var(--gold-2); }
.kpg-lb__baslik { flex: 1; min-width: 0; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .9); }
.kpg-lb__tools { display: flex; gap: 8px; margin-left: auto; }
.kpg-lb__tools button, .kpg-lb__tools a, .kpg-lb__nav {
    width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(233, 211, 154, .25);
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.kpg-lb__tools button:hover, .kpg-lb__tools a:hover, .kpg-lb__nav:hover { background: var(--gold-grad); color: var(--g-900); border-color: transparent; }
.kpg-lb__tools button:focus-visible, .kpg-lb__tools a:focus-visible, .kpg-lb__nav:focus-visible, .kpg-lb__thumbs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.kpg-lb.is-playing [data-kpg-oynat] { background: var(--gold-grad); color: var(--g-900); }

.kpg-lb__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 0; padding: 0 20px; }
.kpg-lb__fig { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.kpg-lb__fig img {
    display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; transform: scale(.98); transition: opacity .3s ease, transform .3s ease;
    -webkit-user-select: none; user-select: none;
}
.kpg-lb__fig img.is-in { opacity: 1; transform: none; }
.kpg-lb__spin {
    position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
    border: 3px solid rgba(233, 211, 154, .2); border-top-color: var(--gold); animation: kpgDon .8s linear infinite; display: none;
}
.kpg-lb.is-loading .kpg-lb__spin { display: block; }
.kpg-lb__err { display: none; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); font-weight: 700; }
.kpg-lb__err i { font-size: 2.4rem; color: rgba(233, 211, 154, .5); }
.kpg-lb.is-err .kpg-lb__err { display: flex; }
.kpg-lb.is-err .kpg-lb__fig img { display: none; }
.kpg-lb__nav { flex-shrink: 0; width: 54px; height: 54px; font-size: 1.1rem; }

.kpg-lb__alt { padding: 12px 20px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.kpg-lb__cap { max-width: 760px; margin: 0 auto 12px; text-align: center; }
.kpg-lb__cap[hidden] { display: none; }
.kpg-lb__cap strong { display: block; font-family: var(--serif); font-size: 1.08rem; color: #fff; }
.kpg-lb__cap p { margin: 4px 0 0; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.kpg-lb__thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.kpg-lb__thumbs::-webkit-scrollbar { display: none; }
.kpg-lb__thumbs button {
    position: relative; flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
    background: rgba(255, 255, 255, .08); opacity: .5; scroll-snap-align: center; transition: opacity .2s, box-shadow .2s;
}
.kpg-lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kpg-lb__thumbs button:hover { opacity: .85; }
.kpg-lb__thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }

@keyframes kpgDon { to { transform: rotate(360deg); } }

/* Duyarlı */
@media (max-width: 1199px) {
    .kpg-hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
    .kpg-fan__item { width: 220px; height: 270px; margin: -135px 0 0 -110px; }
    .kpg-masonry.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .kpg-hero { padding-bottom: 56px; }
    .kpg-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .kpg-fan { display: none; }
    .kpg-masonry { column-count: 2; }
}
@media (max-width: 767px) {
    .kpg-hero { padding-bottom: 44px; }
    .kpg-hero__lead { font-size: .98rem; }
    .kpg-hero__acts .kpd-btn { flex: 1 1 auto; }
    .kpg-main .kpy-container { gap: 22px; }
    .kpg-head h2 { font-size: 1.4rem; }
    .kpg-view button span { display: none; }
    .kpg-masonry { column-gap: 12px; }
    .kpg-item { margin-bottom: 12px; border-radius: 14px; }
    .kpg-masonry.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .kpg-masonry.is-grid .kpg-item { border-radius: 10px; }
    .kpg-item__zoom, .kpg-item__no { display: none; }
    .kpg-lb__bar { padding: 10px 12px; gap: 10px; }
    .kpg-lb__baslik { display: none; }
    .kpg-lb__tools button, .kpg-lb__tools a { width: 40px; height: 40px; }
    .kpg-lb__stage { padding: 0 8px; }
    .kpg-lb__nav {
        position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px;
        background: rgba(4, 21, 14, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .kpg-lb__nav--prev { left: 10px; }
    .kpg-lb__nav--next { right: 10px; }
    .kpg-lb__fig img { border-radius: 8px; }
    .kpg-lb__alt { padding: 10px 12px 14px; }
    .kpg-lb__thumbs { justify-content: flex-start; }
    .kpg-lb__thumbs button { width: 54px; height: 42px; }
}
@media (max-width: 575px) {
    .kpg-masonry { column-count: 2; column-gap: 10px; }
    .kpg-item { margin-bottom: 10px; }
    .kpg-masonry.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpg-tarih { left: 10px; top: 10px; }
    .kpg-adet { right: 10px; top: 10px; }
}
@media (hover: none) {
    .kpg-album__ac { display: none; }
    .kpg-item::after { opacity: .7; }
    .kpg-item__cap { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .kpg-album__ac, .kpg-item, .kpg-item img, .kpg-item::after, .kpg-item__cap, .kpg-item__zoom, .kpg-item__no,
    .kpg-fan__item, .kpg-lb, .kpg-lb__fig img { transition: none !important; }
    .kpg-item:hover, .kpg-item:hover img, .kpg-fan:hover .kpg-fan__item--1 { transform: none; }
    .kpg-lb__spin { animation-duration: 2s; }
}
