/* ==========================================================
   GLOBAL RESET
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

/* ==========================================================
   UNIVERSAL WRAPPER — 80% WIDTH
========================================================== */
.wrapper {
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  display: block;
}

/* ==========================================================
   UNIVERSAL PAGE CONTENT WRAPPER
========================================================== */
.site-content {
  width: 100%;
  padding: 20px 0;
  margin: 0 auto;
}

/* ==========================================================
   HEADER
========================================================== */
header img {
  width: 100%;
  display: block;
  margin-bottom: 0 !important;
}

/* ==========================================================
   NAVIGATION — HORIZONTAL
========================================================== */
.site-nav {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 10px;
}

.site-nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
}

.site-nav ul li a {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 8px 12px;
}

.site-nav ul li a:hover {
  background: #e0e0e0;
  border-radius: 4px;
}

/* ==========================================================
   PAGE TITLES
========================================================== */
.page-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 20px 0;
  font-weight: bold;
}

/* ==========================================================
   MAIN CONTENT AREA
========================================================== */
.content {
  width: auto;
  margin: 20px auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* ==========================================================
   IMAGES — RESPONSIVE (GLOBAL)
========================================================== */
.site-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* ==========================================================
   STATIC IMAGE — ALWAYS EXACTLY 80% PAGE WIDTH
========================================================== */
.static-center-image {
  width: 80%;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.site-content img.static-center-image {
  max-width: none;
}

/* ==========================================================
   STATIC PAGE WRAPPER
========================================================== */
.static-wrapper {
  width: auto;
  text-align: center;
  overflow: hidden;
}

/* ==========================================================
   CONTENT ALIGNMENT OPTIONS
========================================================== */
.static-content {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.static-content.left {
  text-align: left;
}

.static-content.centered {
  text-align: center;
}

/* ==========================================================
   LIST TEMPLATE
========================================================== */
.list-container {
  width: auto;
  margin-top: 20px;
}

.list-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item img {
  width: 200px;
  flex: 0 0 200px;
  margin-bottom: 10px;
}

.list-item .text {
  flex: 1 1 auto;
  min-width: 0;
}

.list-item-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.list-item-desc {
  font-size: 1rem;
  color: #444;
}

/* ==========================================================
   RESPONSIVE STACKING
========================================================== */
@media (max-width: 800px) {
  .list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .list-item img {
    width: 80%;
    max-width: 300px;
    flex: none;
  }

  .list-item .text {
    width: 100%;
    text-align: left;
  }
}

/* ==========================================================
   ALBUM TEMPLATE — GRID
========================================================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.album-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.album-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================
   LIGHTBOX
========================================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   LIGHTBOX BUTTONS
========================================================== */
.album-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  text-decoration: none;
  z-index: 10000;
}

.album-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  text-decoration: none;
  padding: 10px;
  z-index: 10000;
}

.album-nav.prev {
  left: 20px;
}

.album-nav.next {
  right: 20px;
}

.album-nav,
.album-close {
  font-family: sans-serif !important;
  font-size: 3rem !important;
  font-weight: bold !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

/* ==========================================================
   VIDEO TEMPLATE — FINAL VERSION
========================================================== */
.video-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* ⭐ Video starts visible */
.template-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* ⭐ Video fades OUT at end */
.template-video.fade-out {
  opacity: 0;
}

/* ⭐ Overlay sits ON TOP and starts hidden */
.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 1s ease-in-out;
}

/* ==========================================================
   FOOTER
========================================================== */
footer img {
  width: 100%;
  display: block;
}

/* ==========================================================
   RESPONSIVE RULES
========================================================== */
@media (max-width: 900px) {
  .page-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .page-title {
    font-size: 1.5rem;
  }
  .site-nav ul {
    gap: 20px;
  }
}
