/*
Theme Name: Drone Gallery v9
Description: A dark, photo-first personal drone photography gallery.
Version: 1.0.8
Author: Built for 2-day.org
*/

:root {
  --bg: #0b0d0e;
  --bg-soft: #141718;
  --ink: #ece9e2;
  --ink-dim: #9aa0a3;
  --line: #232729;
  --accent: #d8a93f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
}
.brand { font-weight: 800; letter-spacing: .22em; font-size: 14px; text-transform: uppercase; text-decoration: none; }
.brand span { color: var(--accent); }
.site-head nav a {
  color: var(--ink-dim); text-decoration: none; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; margin-left: 28px; transition: color .2s;
}
.site-head nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(11,13,14,.92));
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 32px 72px; max-width: 1280px; margin: 0 auto;
}
.hero-text .kicker {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; display: block;
}
.hero-text h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.01em; }
.hero-text p { color: var(--ink-dim); max-width: 560px; margin-top: 16px; font-size: 17px; }

/* Gallery */
.gallery-sec { padding: 90px 0 30px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 34px; }
.sec-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.sec-head span { color: var(--ink-dim); font-size: 14px; }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.shot {
  position: relative; overflow: hidden; border-radius: 10px; cursor: zoom-in;
  background: var(--bg-soft); aspect-ratio: 3/2;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .25s;
}
.shot:hover figcaption { opacity: 1; }
.shot figcaption small { display: block; font-weight: 400; color: var(--ink-dim); font-size: 12px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { width: 100vw; height: 100vh; object-fit: contain; border-radius: 0; }
.lightbox .cap {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; background: rgba(0,0,0,.55); margin: 0; padding: 8px;
  color: var(--ink-dim); font-size: 14px;
}
.lightbox .close, .lightbox .prev, .lightbox .next {
  position: absolute; background: none; border: none; color: var(--ink);
  font-size: 34px; cursor: pointer; padding: 12px; line-height: 1; opacity: .7;
}
.lightbox .close:hover, .lightbox .prev:hover, .lightbox .next:hover { opacity: 1; }
.lightbox .close { top: 14px; right: 22px; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Videos */
.videos-sec { padding: 90px 0 30px; border-top: 1px solid var(--line); margin-top: 70px; }
.video-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.video-list li a {
  display: block; padding: 18px 22px; background: var(--bg-soft); border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.video-list li a:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-list li a::before { content: "▶ "; color: var(--accent); font-size: 13px; }
@media (max-width: 560px) { .video-list { grid-template-columns: 1fr; } }

/* About */
.about { padding: 90px 0; border-top: 1px solid var(--line); margin-top: 70px; }
.about .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.about h2 { font-size: 24px; font-weight: 800; }
.about p { color: var(--ink-dim); margin-bottom: 16px; }
.about p strong { color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--ink-dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about .wrap { grid-template-columns: 1fr; }
  .site-head nav a { margin-left: 16px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}
