/* Global Variables */
:root {
  --accent-color: #07aaeb; /* Crimson */
  --background-color: #121212;
  --text-color: #F0F0F0;
  --header-bg: #1A1A1A;
  --footer-bg: #1A1A1A;
  --card-bg: #222;
  --border-color: #444;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 1em;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header & Footer */
header, footer {
  background-color: var(--header-bg);
  color: var(--text-color);
  padding: 20px;
}
header a, footer a {
  color: var(--accent-color);
}
header a:hover, footer a:hover {
  color: #ff7f7f;
}

/* Buttons */
.btn {
  background-color: var(--accent-color);
  color: #121212;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #ff7f7f;
}

/* Cards (Common styles for modules) */
.card {
  background-color: var(--card-bg);
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

/* Resident Card Styles */
.resident-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  width: 300px; /* Example fixed width */
  margin: 10px;
}
.resident-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px auto;
}
.resident-card h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.resident-card p {
  font-size: 0.9em;
  color: #aaa;
}

/* Album Card Styles (mirroring resident cards) */
.album-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  width: 300px;
  margin: 10px;
}
.album-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin: 10px auto;
}
.album-card h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Show Card Styles */
.show-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  width: 150px; /* Fixed width for flyer thumbnail */
  margin: 10px;
}
.show-card img {
  width: 150px;
  height: 200px; /* Flyer thumbnail dimensions */
  object-fit: cover;
}
.show-card h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin: 5px 0;
  font-size: 0.9em;
}
.show-card p {
  font-size: 0.8em;
  color: #aaa;
}

/* Series Card Styles */
.series-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  width: 200px; /* Reduced width */
  margin: 10px;
  transition: transform 0.3s ease;
}
.series-card:hover {
  transform: scale(1.02);
}
.series-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px auto;
}
.series-card h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: 1em;
}
.series-card p {
  font-size: 0.8em;
  color: #aaa;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -30px;
  right: 0;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 2em;
  pointer-events: none;
}
.lightbox-nav span {
  cursor: pointer;
  pointer-events: auto;
  margin: 0 20px;
}

/* Header Styles */
#site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
}
.logo-container {
  width: 150px;
  height: 150px;
  overflow: hidden;
}
.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures the logo fits without changing aspect ratio */
}
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-links ul li a {
  color: var(--accent-color);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links ul li a:hover {
  color: #ff7f7f;
}

/* CMS Dashboard Styles */
#dashboard {
  display: flex;
  min-height: 100vh;
}
#sidebar {
  width: 250px;
  background-color: var(--header-bg);
  padding: 20px;
}
#sidebar h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  color: var(--accent-color);
  margin-bottom: 20px;
}
#sidebar ul {
  list-style: none;
  padding: 0;
}
#sidebar ul li {
  margin-bottom: 10px;
}
#sidebar ul li a {
  color: var(--accent-color);
  font-size: 1em;
  font-weight: bold;
}
#sidebar ul li a:hover {
  text-decoration: underline;
}
#main-content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}
#loading-indicator {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  color: var(--accent-color);
}

/* Utility Classes */
.text-center {
  text-align: center;
}
