/* =====================================================================
   Foto / Video Galeri — ön yüz (tüm temalarda ortak; renkler temaya göre)
   ===================================================================== */
.gx {
    --gx-accent: var(--hs-primary, #c8102e);
    --gx-text: var(--hs-text, #111827);
    --gx-muted: var(--hs-muted, #6b7280);
    --gx-border: var(--hs-border, #e9eaee);
    --gx-surface: #ffffff;
    --gx-soft: #f4f5f7;
    --gx-title-font: inherit;
    --gx-radius: 16px;
    color: var(--gx-text);
}
.gx-dergi { --gx-accent: var(--dg-accent, #b8863f); --gx-text: var(--dg-ink, #1a1a1a); --gx-muted: var(--dg-muted, #767676); --gx-border: var(--dg-border, #ececec); --gx-title-font: var(--dg-font-serif, Georgia, serif); --gx-radius: 6px; }
.gx-manset { --gx-accent: var(--mn-brand, #e30a17); --gx-text: var(--mn-text, #0b1220); --gx-muted: var(--mn-muted, #6b7280); --gx-border: var(--mn-border, #e4e6eb); --gx-surface: var(--mn-surface, #fff); --gx-soft: var(--mn-surface-2, #f7f8fa); --gx-radius: 14px; }
.gx-koyu { --gx-accent: var(--kd-accent, #4f7cff); --gx-text: var(--kd-text, #eceef1); --gx-muted: var(--kd-muted, #8b8e97); --gx-border: var(--kd-border, #26282f); --gx-surface: var(--kd-surface, #15171c); --gx-soft: #1b1d23; }

/* Başlık */
.gx-crumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gx-muted); margin-bottom: 14px; }
.gx-crumb a { color: inherit; text-decoration: none; }
.gx-crumb a:hover { color: var(--gx-accent); }
.gx-crumb i { font-size: .7rem; }
.gx-head { margin-bottom: 24px; }
.gx-head-detail { max-width: 860px; }
.gx-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gx-accent); }
.gx-title { color: var(--gx-text); font-family: var(--gx-title-font); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.15; margin: 6px 0 8px; letter-spacing: -.01em; }
.gx-lead { color: var(--gx-muted); font-size: 1.02rem; margin: 0 0 10px; }
.gx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--gx-muted); }
.gx-meta i { margin-right: 4px; }
.gx-empty { color: var(--gx-muted); padding: 40px 0; text-align: center; }

/* Paylaş */
.gx-share { display: inline-flex; gap: 6px; margin-left: auto; }
.gx-share a, .gx-share button {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gx-border);
    background: var(--gx-surface); color: var(--gx-text); text-decoration: none; transition: background .15s, color .15s, transform .15s;
}
.gx-share a:hover, .gx-share button:hover { background: var(--gx-accent); border-color: var(--gx-accent); color: #fff; transform: translateY(-2px); }
.gx-share .is-done { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Albüm kartları */
.gx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gx-cards.is-bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.gx-card {
    position: relative; display: block; border-radius: var(--gx-radius); overflow: hidden; aspect-ratio: 4 / 3;
    background: var(--gx-soft); color: #fff; text-decoration: none; isolation: isolate;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.gx-cards.is-bento .gx-card.is-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.gx-card-media { position: absolute; inset: 0; z-index: -1; }
.gx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gx-card:hover .gx-card-media img { transform: scale(1.06); }
.gx-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 45%, transparent 75%); }
.gx-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.gx-card-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.gx-card-title { font-family: var(--gx-title-font); font-size: 1.08rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gx-card.is-lead .gx-card-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); }
.gx-card-desc { font-size: .9rem; opacity: .85; }
.gx-count {
    position: absolute; top: 12px; right: 12px; display: inline-flex; gap: 5px; align-items: center; font-size: .75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); color: #fff;
}
.gx-play, .gx-bigplay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font-size: 28px; color: #fff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .45); transition: transform .25s, background .25s;
}
.gx-card:hover .gx-play { transform: translate(-50%, -60%) scale(1.1); background: var(--gx-accent); border-color: var(--gx-accent); }

/* Fotoğraf duvarı (masonry) */
.gx-masonry { columns: 3 300px; column-gap: 16px; }
.gx-shot { break-inside: avoid; margin: 0 0 16px; }
.gx-shot a { position: relative; display: block; border-radius: var(--gx-radius); overflow: hidden; background: var(--gx-soft); cursor: zoom-in; }
.gx-shot img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.gx-shot a:hover img { transform: scale(1.04); filter: brightness(.9); }
.gx-shot-no { position: absolute; left: 10px; top: 10px; font-size: .72rem; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.gx-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .5); opacity: 0; transform: scale(.8); transition: .2s; }
.gx-shot a:hover .gx-zoom { opacity: 1; transform: none; }
.gx-shot figcaption { font-size: .86rem; color: var(--gx-muted); padding: 8px 2px 0; }

.gx-more { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--gx-border); }
.gx-more h2 { font-family: var(--gx-title-font); font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }

/* Lightbox */
.gx-lb { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; background: rgba(8, 9, 12, .96); color: #fff; opacity: 0; transition: opacity .2s; }
.gx-lb.is-open { opacity: 1; }
.gx-lb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: .9rem; }
.gx-lb-top button, .gx-lb-nav { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; transition: background .15s; }
.gx-lb-top button:hover, .gx-lb-nav:hover { background: rgba(255, 255, 255, .22); }
.gx-lb-tools { display: flex; gap: 8px; }
.gx-lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 72px; touch-action: pan-y; }
.gx-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; }
.gx-lb-stage img.is-loading { opacity: .3; transform: scale(.98); }
.gx-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gx-lb-prev { left: 14px; }
.gx-lb-next { right: 14px; }
.gx-lb-cap { text-align: center; padding: 10px 16px 0; min-height: 30px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.gx-lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; justify-content: safe center; scrollbar-width: thin; }
.gx-lb-strip button { flex: none; width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .5; background: #222; transition: opacity .15s, border-color .15s; }
.gx-lb-strip button.is-active, .gx-lb-strip button:hover { opacity: 1; border-color: #fff; }
.gx-lb-strip img { width: 100%; height: 100%; object-fit: cover; }
body.gx-lock { overflow: hidden; }

/* Video sahnesi */
.gx-theater { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.gx-theater:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.gx-screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--gx-radius); overflow: hidden; background: #000; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.gx-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gx-loading { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: gx-spin .8s linear infinite; pointer-events: none; }
@keyframes gx-spin { to { transform: rotate(360deg); } }
.gx-fallback { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gx-fallback:hover { background: #000; color: #fff; }
.gx-ext { display: inline-flex; align-items: center; gap: 4px; color: inherit; opacity: .8; text-decoration: none; }
.gx-ext:hover { opacity: 1; text-decoration: underline; }
.gx-facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.gx-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s, transform .4s; }
.gx-facade:hover img { opacity: 1; transform: scale(1.02); }
.gx-facade .gx-bigplay { width: 84px; height: 84px; font-size: 42px; transform: translate(-50%, -50%); background: var(--gx-accent); border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.gx-facade:hover .gx-bigplay { transform: translate(-50%, -50%) scale(1.08); }
.gx-now { padding: 16px 2px 0; }
.gx-now .gx-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); }

.gx-playlist { border: 1px solid var(--gx-border); border-radius: var(--gx-radius); background: var(--gx-surface); overflow: hidden; position: sticky; top: 16px; }
.gx-playlist-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--gx-border); font-size: .9rem; }
.gx-playlist-head span { color: var(--gx-muted); font-size: .8rem; }
.gx-playlist ol { list-style: none; margin: 0; padding: 6px; max-height: 520px; overflow-y: auto; }
.gx-pl-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px; border: 0; border-radius: 10px; background: transparent; color: var(--gx-text); transition: background .15s; }
.gx-pl-item:hover { background: var(--gx-soft); }
.gx-pl-item.is-active { background: var(--gx-soft); box-shadow: inset 3px 0 0 var(--gx-accent); }
.gx-pl-thumb { position: relative; flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #222; }
.gx-pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gx-pl-no { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); }
.gx-pl-item.is-active .gx-pl-no { background: var(--gx-accent); }
.gx-pl-title { font-size: .86rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 991.98px) {
    .gx-cards.is-bento { grid-template-columns: repeat(2, 1fr); }
    .gx-theater { grid-template-columns: minmax(0, 1fr); }
    .gx-playlist { position: static; }
}
@media (max-width: 575.98px) {
    .gx-cards.is-bento { grid-template-columns: 1fr; }
    .gx-cards.is-bento .gx-card.is-lead { grid-column: auto; grid-row: auto; min-height: 300px; }
    .gx-masonry { columns: 2 150px; column-gap: 10px; }
    .gx-shot { margin-bottom: 10px; }
    .gx-lb-stage { padding: 0 8px; }
    .gx-lb-nav { display: none; }
    .gx-share { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gx *, .gx-lb, .gx-lb * { transition: none !important; animation: none !important; }
}
