/* ============================================
   tilling.io — photography.css
   ============================================ */

/* === PAGE HERO === */
.photo-hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}

.photo-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--sky-pale) 0%, var(--warm-white) 60%);
  z-index: 0;
}

.photo-hero-bg::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sky-light), transparent 70%);
  opacity: 0.5;
}

.photo-hero .container { position: relative; z-index: 1; }

.photo-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* === VIDEO SECTION === */
.video-section { padding: 72px 0 64px; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.video-embed-wrap { overflow: hidden; }

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a3a4a 0%, #1a5276 100%);
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}
.video-placeholder:hover { opacity: 0.9; }

.video-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  font-size: 0.9rem;
}

.video-thumb svg {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}
.video-placeholder:hover .video-thumb svg {
  transform: scale(1.1);
  background: rgba(255,255,255,0.25);
}

.video-embed-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* === GALLERY === */
.gallery-section { padding: 16px 0 80px; }

.photo-gallery {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0;
  cursor: zoom-in;
}

.photo-tile--wide { grid-column: span 2; }
.photo-tile--tall { grid-row: span 2; }

.photo-tile-inner {
  width: 100%; height: 100%;
  overflow: hidden;
}

.photo-tile img,
.photo-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-placeholder {
  background: linear-gradient(135deg, #1a3344 0%, #2e6491 50%, #5dade2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  font-weight: 600;
}

.photo-tile:hover img,
.photo-tile:hover .photo-placeholder { transform: scale(1.04); }

.photo-tile figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}
.photo-tile:hover figcaption { opacity: 1; }

/* === GEAR === */
.gear-section { padding: 0 0 96px; }

.gear-panel { max-width: 640px; }

.gear-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gear-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--warm-off);
  border-radius: var(--radius-md);
  border: 1px solid var(--warm-border);
}

.gear-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.gear-name { font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.gear-desc { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .photo-tile--wide { grid-column: span 2; }
  .photo-tile--tall { grid-row: span 1; }
}

@media (max-width: 480px) {
  .photo-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .photo-tile--wide { grid-column: span 1; }
}
