/* ==========================================================================
   Thirsty Dreamer — UI updates
   Loaded AFTER css/style.css (see <link> in index.html). Nothing in
   style.css was edited; these rules sit on top of it.
   Sections: 1 Logo · 2 Hero image · 3 About image · 4 Video grid · 5 Phone reel
   ========================================================================== */

/* 1 ── LOGO (top-left) ─────────────────────────────────────────────────── */
#nav { height: auto !important; }
#nav .nav-in { height: auto !important; min-height: 0 !important; align-items: center; }
#nav .nav-logo {
  height: 92px !important;      /* change this one number to resize the logo */
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}
@media (max-width: 900px) { #nav .nav-logo { height: 68px !important; } }
@media (max-width: 480px) { #nav .nav-logo { height: 58px !important; } }

/* 2 ── HERO: one image fills the whole right column ────────────────────── */
.hero .hero-visual {
  position: relative !important;
  align-self: stretch;
  width: 100%;
  min-height: clamp(460px, 68vh, 780px);
}
.td-hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1410;
}
.td-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;     /* keeps his face and the glass in frame */
}
.td-hero-photo .hero-badge {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  left: 18px !important;
  bottom: 18px !important;
  z-index: 3;
}
@media (max-width: 900px) {
  .hero .hero-visual { min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; }
}

/* 3 ── ABOUT: one image covers the whole left area ─────────────────────── */
.about-visual {
  position: relative !important;
  height: auto !important;
  max-width: none !important;
}
.td-about-photo {
  position: relative;
  aspect-ratio: 1008 / 1001;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1410;
}
.td-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.about-visual .about-note { z-index: 2; }

/* Journal cards: real photos */
.article-img { height: auto !important; aspect-ratio: 2 / 3; }
@media (max-width: 560px) { .article-img { aspect-ratio: 4 / 5; } }
.article-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.article:hover .article-img img { transform: scale(1.06); }
.article-num { z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* 4 ── VIDEO GRID: vertical (9:16) cards ───────────────────────────────── */
#film-cards.td-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 320px)) !important;
  justify-content: center;
  align-items: start !important;
  gap: clamp(14px, 2vw, 28px) !important;
}
@media (max-width: 979px) {
  #film-cards.td-grid { grid-template-columns: repeat(2, minmax(0, 300px)) !important; }
}
@media (max-width: 520px) {
  #film-cards.td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
.td-reel-card {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: #14110c;
  isolation: isolate;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .6);
  -webkit-user-select: none;
  user-select: none;
}
.td-reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #14110c;
}
.td-reel-card .td-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;       /* stops double-tap zoom so double-tap works */
  -webkit-tap-highlight-color: transparent;
}
.td-reel-card .td-hit:focus-visible { outline: 3px solid #ece4d4; outline-offset: -3px; border-radius: 14px; }
.td-reel-card .td-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ece4d4;
  background: rgba(15, 12, 8, .55);
  border: 1.5px solid rgba(236, 228, 212, .75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
  transition: opacity .2s ease;
}
.td-reel-card .td-badge svg { width: 22px; height: 22px; margin-left: 2px; }
.td-reel-card.is-playing .td-badge { opacity: 0; }
.td-reel-card .td-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 46px 14px 14px;
  color: #ece4d4;
  background: linear-gradient(transparent, rgba(15, 12, 8, .85));
  pointer-events: none;
  transition: opacity .2s ease;
}
.td-reel-card.is-playing .td-meta { opacity: 0; }
.td-reel-card .td-meta .c { display: block; font-size: 12px; letter-spacing: .02em; opacity: .85; }
.td-reel-card .td-meta .t { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.td-reel-card .td-ig {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ece4d4;
  background: rgba(15, 12, 8, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
}
.td-reel-card .td-ig svg { width: 18px; height: 18px; }
.td-reel-card .td-ig:hover { background: rgba(15, 12, 8, .85); }
.td-reel-card .td-ig:focus-visible { outline: 2px solid #ece4d4; outline-offset: 2px; }

/* 5 ── PHONE REEL: Play / Pause overlay ────────────────────────────────── */
.reel-screen { cursor: pointer; -webkit-user-select: none; user-select: none; }
.reel-screen .reel-video { touch-action: manipulation; }
.td-reel-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 14px;
  pointer-events: none;             /* only the buttons themselves catch clicks */
  transition: opacity .25s ease;
}
.td-reel-controls.is-playing { opacity: .72; }
.td-reel-controls:hover,
.td-reel-controls:focus-within { opacity: 1; }
.td-reel-btn {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ece4d4;
  background: rgba(15, 12, 8, .55);
  border: 1.5px solid rgba(236, 228, 212, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.td-reel-btn svg { width: 22px; height: 22px; }
.td-reel-btn:hover { background: rgba(15, 12, 8, .8); transform: scale(1.06); }
.td-reel-btn:focus-visible { outline: 2px solid #ece4d4; outline-offset: 3px; }
.td-reel-btn[aria-pressed="true"] { background: #ece4d4; color: #1a1410; border-color: #ece4d4; }

@media (prefers-reduced-motion: reduce) {
  .td-reel-btn, .td-reel-controls, .td-reel-card .td-badge, .td-reel-card .td-meta { transition: none; }
  .td-reel-btn:hover { transform: none; }
}

/* 6 ── GOOGLE DRIVE FALLBACK PLAYER (only used if direct playback fails) ── */
.td-reel-card .td-drive-frame,
.reel-screen .td-drive-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  background: #14110c;
}
/* keep the Instagram button clear of Drive's own pop-out icon (top-right) */
.td-reel-card.is-fallback .td-ig { right: auto; left: 10px; }

/* 7 ── DISCOVERABILITY: hint that double-click opens the Instagram reel (mouse devices only) ── */
@media (hover: hover) and (pointer: fine) {
  .td-reel-card::after {
    content: 'Double-click → Instagram';
    position: absolute;
    top: 14px; left: 50%;
    transform: translate(-50%, -6px);
    z-index: 4;
    padding: 6px 12px;
    border-radius: 999px;
    font: 500 11.5px/1 'DM Sans', system-ui, sans-serif;
    letter-spacing: .02em;
    white-space: nowrap;
    color: #ece4d4;
    background: rgba(15, 12, 8, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .td-reel-card:hover::after { opacity: 1; transform: translate(-50%, 0); }
  .td-reel-card.is-fallback::after { display: none; }
}

/* In Drive's own player (fallback) double-click can't be detected, so show a labelled Instagram button instead */
.td-reel-card.is-fallback .td-ig { width: auto; padding: 0 12px 0 10px; border-radius: 999px; grid-auto-flow: column; gap: 6px; }
.td-reel-card.is-fallback .td-ig::after { content: 'Instagram'; font: 500 12px/1 'DM Sans', system-ui, sans-serif; }

/* 8 ── HERO: fill the full page width, bigger text, bigger photo ───────────
   style.css makes .hero a flex row, which shrinks its container and leaves
   empty space on the left and right. These rules let it use the full width. */
.hero > .wrap {
  width: 100%;
  max-width: 1560px;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}
.hero-grid {
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 4.5vw, 84px);
}
.hero h1 { font-size: clamp(54px, 8vw, 132px); }          /* was max 104px */
.hero-intro { font-size: clamp(17px, 1.45vw, 23px); max-width: 52ch; }
.hero .btn { font-size: clamp(14px, 1.1vw, 17px); padding: clamp(14px, 1.1vw, 18px) clamp(26px, 2.2vw, 36px); }
.hero-meta { font-size: clamp(12px, .95vw, 14px); }
.hero .hero-visual { min-height: clamp(480px, 78vh, 900px); }
.td-hero-photo img { object-position: 50% 38%; }          /* keeps his face and the glass in the wider frame */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }   /* stack text above photo on phones/tablets */
  .hero > .wrap { max-width: none; }
  .hero h1 { font-size: clamp(54px, 13vw, 84px); }
  .hero .hero-visual { min-height: 0; }
}

/* keep the logo / menu lined up with the wider hero */
@media (min-width: 901px) {
  #nav .nav-in {
    max-width: 1560px;
    padding-left: clamp(24px, 4vw, 64px);
    padding-right: clamp(24px, 4vw, 64px);
  }
}

/* 9 ── the two photo overlays were removed from the page; this is a safety net ── */
.hero-badge, .about-note { display: none !important; }
