/* =========================
   Global / Page Base
========================= */
body {
  background-color: #13792C;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

header.santa-header {
  text-align: center;
  padding: 20px 10px;
}

.santa-header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.santa-header p {
  margin: 0;
  font-size: 1rem;
}

/* Outer wrapper (full width) */
.album-wrapper {
  width: 100%;
  padding: 15px 0 30px 0;
}

/* Inner wrapper (80% width, centered) */
.album-inner {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.album-card {
  background: #ffffff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  padding: 15px;
}

.album-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #c02828;
  text-align: center;
}

/* =========================
   Gallery Grid + Photo Frames (film-strip look)
   --------------------------------------------------
   Replaces the old .photo-frame rules. Adds the .gallery
   grid and .film-holes sprocket strips that were missing.
========================= */
:root {
  --frame-bg: #161616;     /* film black */
  --hole-color: #d7d7d7;   /* sprocket holes */
  --photo-height: 300px;   /* change to make photos taller/shorter */
}

/* Lays each photo group out in a responsive grid, centered */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* The frame itself (display:block so the strips stack top & bottom) */
.photo-frame {
  position: relative;
  display: block;
  width: 100%;
  background: var(--frame-bg);
  padding: 8px 12px 12px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: visible;
}

/* Sprocket holes, top and bottom */
.film-holes {
  height: 14px;
  margin: 6px 2px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    to right,
    var(--frame-bg) 0 9px,
    var(--hole-color) 9px 21px
  );
}

/* DEFAULT photo behavior (used by gallery2.html's rotating album and any
   .photo-frame that is NOT inside a .gallery grid): show the WHOLE image,
   never cropped. Centered, and capped so tall photos can't dominate.
   The opacity transition is kept for the album's fade effect. */
.photo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 3px;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

/* GRID tiles only (gallery.html): uniform size, cropped to fill so every
   frame matches. Scoped to .gallery so it never touches the album. */
.gallery .photo-frame img {
  width: 100%;
  max-width: none;
  height: var(--photo-height);
  max-height: none;
  object-fit: cover;
  margin: 0;
}

.gallery .photo-frame video {
  display: block;
  width: 100%;
  max-width: none;
  height: var(--photo-height);
  object-fit: contain;   /* show the whole clip; black fills any gaps */
  background: #000;
  border-radius: 3px;
  margin: 0;
}

.photo-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

.album-controls {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-santa {
  border-radius: 999px;
  border: 2px solid #c02828;
  background: transparent;
  color: #c02828;
  padding: 6px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-santa:hover {
  background: #c02828;
  color: #fff;
}

.indicator-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #c02828;
  background: transparent;
  opacity: 0.5;
}

.indicator-dot.active {
  background: #c02828;
  opacity: 1;
}

footer.santa-footer {
  margin: 20px 0;
  font-size: 0.85rem;
  text-align: center;
  color: #eee;
}

/* Existing small screen adjustments (keep) */
@media (max-width: 576px) {
  .album-inner {
    width: 95%;
  }
  .album-card {
    padding: 10px;
  }
  .santa-header h1 {
    font-size: 1.6rem;
  }
}

/* =========================
   Top Navigation
========================= */
.topnav {
  overflow: hidden;
  background-color: #ef0303;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* =========================
   Fade Overlay
========================= */
.page-content.faded::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 999;
}
