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

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

/* ==========================================================
   UNIVERSAL WRAPPER — 80% WIDTH + 90vw CAP
========================================================== */
.wrapper {
  width: 80%;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

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

/* ==========================================================
   HEADER
========================================================== */
header img {
  width: 100%;
  display: block;
  margin-bottom: 0 !important; /* ⭐ ULTRA‑TIGHT HEADER → NAV */
}

/* ==========================================================
   NAVIGATION — HORIZONTAL
========================================================== */
.site-nav {
  margin-top: 0 !important; /* ⭐ ULTRA‑TIGHT HEADER → NAV */
  padding-top: 0 !important; /* ⭐ ULTRA‑TIGHT HEADER → NAV */
  padding-bottom: 10px; /* spacing BELOW nav stays */
}

.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: 100%;
  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: 100%;
  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: 100%;
  margin-top: 20px;
}

.list-item {
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

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

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

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

/* ==========================================================
   ALBUM TEMPLATE
========================================================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.album-item {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.album-item img {
  width: 100%;
  height: auto;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

/* ==========================================================
   ADMIN EDITOR
========================================================== */
.editor-container {
  width: 100%;
  margin-top: 20px;
}

.editor-container label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.editor-container input[type="text"],
.editor-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 1rem;
}

.editor-container textarea {
  min-height: 150px;
}

.editor-container button {
  background: #003366;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
}

.editor-container button:hover {
  background: #002244;
}

/* ==========================================================
   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;
  }
}
