/* ============================================
   yura.raduke.com — Memorial Site
   Academic style: beige, serif, grayscale
   ============================================ */

:root {
  --bg: #F5F0E8;
  --bg-light: #FAF7F2;
  --text: #444;
  --text-heading: #2C2C2C;
  --text-light: #888;
  --text-caption: #777;
  --border: #DDD5C8;
  --accent: #8B7D6B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */

h1, h2, h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--text-heading);
  font-weight: 400;
}

/* ---- Layout ---- */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */

.hero {
  text-align: center;
  padding: 80px 24px 48px;
}

.hero__dates {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.hero__name {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Portrait ---- */

.portrait {
  text-align: center;
  padding: 0 24px 48px;
}

.portrait__img {
  width: 100%;
  max-width: 720px;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.portrait__name {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ---- Section ---- */

.section {
  padding: 48px 0;
}

.section__title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.section__text {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ---- Divider ---- */

.divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 48px;
}

/* ---- Gallery (main) ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: var(--bg-light);
}

.gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Vertical photo positioning: add class to <a> element */
.gallery__item--top img { object-position: center 20%; }
.gallery__item--center img { object-position: center center; }
.gallery__item--bottom img { object-position: center 80%; }

.gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.gallery__caption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-caption);
  font-style: italic;
  text-align: center;
}

/* ---- Gallery (extra — same as main) ---- */

/* ---- Video ---- */

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 2px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.video-wrap iframe,
.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

/* ---- Extra section toggle ---- */

.extra-toggle {
  display: block;
  margin: 0 auto;
  padding: 14px 40px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  letter-spacing: 0.05em;
}

.extra-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.extra-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.extra-content.open {
  max-height: none;
}

/* ---- Footer ---- */

.footer {
  text-align: center;
  padding: 60px 24px 40px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer__line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 20px;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero {
    padding: 48px 20px 32px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery__item img {
    height: auto;
    max-height: 400px;
  }

  .gallery__caption {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .portrait__img {
    max-width: 100%;
  }

  .section {
    padding: 32px 0;
  }
}

/* ---- GLightbox overrides ---- */

.glightbox-clean .gslide-description {
  background: transparent;
}

.glightbox-clean .gslide-title {
  font-family: 'Lora', serif;
  color: #eee;
  font-size: 1rem;
  font-weight: 400;
}
