/* kylecasem.com: plain CSS recreation of the 2022 WordPress (Neve theme) look.
   Font: PT Serif everywhere. Text/link color #060602 on white. */

:root {
  --text: #060602;
  --bg: #ffffff;
  --muted: #54595f;
  --rule: #e6e6e6;
  --container: 1170px;
  --font: "PT Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); }
a:hover { text-decoration: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
h1 { font-size: 75px; }
h2 { font-size: 45px; }
h3 { font-size: 30px; }
p { margin: 0 0 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 30px;
  min-height: 90px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { text-decoration: none; line-height: 1.3; }
.brand-title { display: block; font-size: 24px; font-weight: 600; }
.brand-tagline { display: block; font-size: 14px; color: var(--muted); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.site-nav a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--text); }

/* ---------- Home hero ---------- */
.hero {
  min-height: 100vh;
  background: #333 url("../images/home-hero.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner { width: 100%; max-width: 500px; padding: 0 15px; text-align: right; }
.hero h1 { color: #fff; font-size: 45px; margin: 0; }

/* Same as the old site: Elementor "fadeIn" entrance at "slow" speed (2s) */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 2s ease both; }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* ---------- Pages ---------- */
.page { padding: 60px 0 80px; }
.page-title { margin-bottom: 40px; }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}
.about-intro img { margin: 0 auto; }

.choir-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 24px auto 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.choir-link img { width: 96px; height: auto; transition: transform 0.2s; }
.choir-link:hover img { transform: scale(1.06); }
.choir-link:hover span { text-decoration: underline; }

.channel-callout { margin-bottom: 40px; }
.channel-callout .choir-link { margin: 0; } /* left-aligned; logo stays centered over caption */

.section-heading { margin-top: 20px; }
.spacer { height: 102px; }
.spacer-sm { height: 50px; }

.divider {
  width: 50%;
  margin: 15px auto 30px;
  border: 0;
  border-top: 1px solid #000;
}

/* Responsive 16:9 video embeds */
.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  background: #000;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card {
  margin: 0 0 30px;
  padding: 20px 24px;
  border-left: 4px solid var(--text);
  background: #f7f7f7;
}
.video-card p:last-child { margin-bottom: 0; }
.video-card-title { font-weight: 700; }
.video-card-meta { font-size: 0.85em; color: var(--muted); }

audio { width: 100%; margin-bottom: 20px; }

/* ---------- Gallery (WordPress-style cropped 930x620 thumbnails) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.gallery.cols-4 { --cols: 4; }
.gallery a { display: block; overflow: hidden; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.2s;
}
.gallery a:hover img { opacity: 0.85; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 60px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox-caption { color: #fff; font-size: 15px; margin-top: 12px; text-align: center; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 14px;
  font-family: var(--font);
}
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Responsive (Neve breakpoints) ---------- */
@media (max-width: 960px) {
  h1 { font-size: 55px; }
  h2 { font-size: 35px; }
  body { font-size: 16px; line-height: 1.6; }
  .gallery.cols-4 { --cols: 3; }
}

@media (max-width: 767px) {
  h1 { font-size: 43px; }
  h2 { font-size: 30px; }
  h3 { font-size: 23px; }
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .page { padding: 40px 0 60px; }
  .about-intro { grid-template-columns: 1fr; gap: 30px; }
  .gallery, .gallery.cols-4 { --cols: 2; }
  .hero-inner { padding-right: 6%; }
  .spacer { height: 60px; }
  .lightbox { padding: 50px 10px; }
}
