/* ================================================================
   Galeri — albüm ızgarası + albüm içi (yalnızca galeri.html)
   ================================================================ */
:where(.ga-page) section { padding: 0; }

.ga-head { text-align: center; margin: var(--space-xl) 0 var(--space-xl); }
.ga-eyebrow { font-family: var(--font-mono, monospace); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.ga-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 6px 0 4px; }
.ga-sum { color: var(--text-muted); font-size: 0.9rem; }

.ga-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: var(--space-lg); }
.ga-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg-card); }
.ga-search input { flex: 1; border: none; outline: none; background: none; font: inherit; color: var(--text-primary); min-width: 0; }
.ga-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-card); }
.ga-seg button { border: none; background: none; padding: 8px 14px; border-radius: 99px; font: inherit; font-size: 0.84rem; color: var(--text-secondary); cursor: pointer; }
.ga-seg button[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-primary); }

/* ---------- Albüm kartları ---------- */
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.ga-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-light); text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(0,0,0,0.04); transition: transform 220ms var(--ease-out, ease), box-shadow 220ms; }
.ga-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.ga-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ga-cover { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; background: var(--bg-secondary); }
.ga-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease-out, ease); }
.ga-cover img:first-child { grid-row: 1 / 3; }
.ga-card:hover .ga-cover img { transform: scale(1.04); }
.ga-cover { overflow: hidden; }
.ga-cover.one { display: block; }
.ga-cover.one img { grid-row: auto; }
.ga-cover.empty { display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: linear-gradient(135deg, var(--bg-secondary), rgba(184,149,106,0.18)); }
.ga-cover .more { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.78rem; font-weight: 600; backdrop-filter: blur(4px); }
.ga-card-body { padding: 16px 18px 18px; }
.ga-kind { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.ga-kind.trip { color: #5A8AA6; }
.ga-kind.fav { color: #C4A265; }
.ga-card h2 { font-size: 1.45rem; line-height: 1.2; color: var(--text-primary); }
.ga-card h2 .emo { font-size: 1.1rem; }
.ga-card .meta { margin-top: 4px; font-size: 0.82rem; color: var(--text-secondary); }
.ga-none { color: var(--text-muted); padding: var(--space-xl) 0; text-align: center; grid-column: 1 / -1; }
.ga-empty { text-align: center; padding: var(--space-3xl, 80px) 0; color: var(--text-secondary); }
.ga-empty .icon { font-size: 3rem; margin-bottom: 10px; }
.ga-empty .sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Albümün içi ---------- */
.ga-back { display: inline-flex; align-items: center; gap: 6px; margin: var(--space-lg) 0 var(--space-md); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); text-decoration: none; font-size: 0.88rem; }
.ga-back:hover { border-color: var(--accent); }
.ga-hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: linear-gradient(135deg, #8E7BB8, #B8956A); margin-bottom: var(--space-xl); }
.ga-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ga-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.1) 65%); }
.ga-hero-in { position: relative; z-index: 1; padding: 28px 30px; color: #fff; max-width: 760px; }
.ga-hero .ga-kind { color: rgba(255,255,255,0.8); }
.ga-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.ga-hero .meta { opacity: 0.85; font-size: 0.9rem; margin-top: 6px; }
.ga-hero .desc { margin-top: 10px; opacity: 0.92; }
.ga-trip { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); color: #fff; text-decoration: none; font-size: 0.86rem; backdrop-filter: blur(6px); }
.ga-trip:hover { background: rgba(255,255,255,0.3); }

.ga-photos { columns: 3 260px; column-gap: 14px; }
.ga-ph { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: none; border-radius: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--bg-secondary); }
.ga-ph img { width: 100%; display: block; transition: transform 400ms var(--ease-out, ease); }
.ga-ph:hover img { transform: scale(1.03); }
.ga-ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 0.8rem; text-align: left; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); opacity: 0; transition: opacity 200ms; }
.ga-ph:hover .cap, .ga-ph:focus-visible .cap { opacity: 1; }
@media (hover: none) { .ga-ph .cap { opacity: 1; } }

.ga-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: var(--space-2xl, 48px) 0 var(--space-xl); }
.ga-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: inherit; text-decoration: none; }
.ga-pager a:hover { border-color: var(--accent); }
.ga-pager .next { text-align: right; grid-column: 2; }
.ga-pager small { color: var(--text-muted); font-size: 0.76rem; }
.ga-pager strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary); font-weight: 500; }

@media (max-width: 600px) {
  .ga-grid { grid-template-columns: 1fr; gap: 16px; }
  .ga-hero { min-height: 240px; border-radius: 18px; }
  .ga-hero-in { padding: 20px; }
  .ga-photos { columns: 2; column-gap: 8px; }
  .ga-ph { margin-bottom: 8px; border-radius: 10px; }
  .ga-pager { grid-template-columns: 1fr; }
  .ga-pager .next { grid-column: auto; }
}
