* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  font-family: "Georgia", serif;
  background: #f5f0e6;
  color: #1b1b1b;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

.bg-blue {
  background: #0a4ebd;
}

.bg-blue h1,
.bg-blue h2,
.bg-blue h3 {
  color: #f8ba48;
}

.bg-blue p,
.bg-blue a,
.bg-blue li {
  color: #fff;
}

.bg-blue .resource-link {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

.bg-blue .resource-link:hover {
  background: #000000;
}

.bg-denhart {
  background: url('../img/denhart.png') center/cover no-repeat;
}

.bg-saffira {
  background: url('../img/denhart.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.bg-phebi {
  background: url('../img/denhart.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.screen-section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  text-align: center;
}

.section-content {
  max-width: 960px;
  width: 100%;
}

h1, h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1c2b45;
  text-transform: uppercase;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 2rem;
}

/* Roster */
.roster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.member-card {
  flex: 1 1 260px;
  max-width: 30%;
  min-width: 200px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  padding: 0.5rem;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  /*
  dumb tbh
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
}*/
}

.member-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.member-card p, 
.member-card h1, 
.member-card h2, 
.member-card h3 {
  color: #000;
}

/* Resources */
.links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.resource-link {
  padding: 1rem 2rem;
  background: #e3d6b0;
  border: 2px solid #1c2b45;
  color: #1c2b45;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.resource-link-disabled {
  pointer-events: none;
  cursor: default;
  padding: 1rem 2rem;
  background: #deddd9;
  border: 2px solid #4d4e4f;
  color: #4d4e4f;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.resource-link:hover {
  transform: scale(1.05);
}

/* Side Navigation */
.side-nav {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.side-nav a {
  font-size: 1.5rem;
  color: #1c2b45;
  background: #0a419b;
  /*border: 2px solid #f8ba48;*/
  /*background: #e3d6b0;*/
  /*border: 2px solid #1c2b45;*/
  padding: 0.5rem;
  border-radius: 50%;
  text-align: center;
  transition: background 0.3s;
  text-decoration: none;
}

.side-nav a:hover {
  background: #d1c397;
}

.log-entry {
  margin-bottom: 1rem;
}

.log-title {
  background: #e3d6b0;
  color: #1c2b45;
  border: none;
  padding: 0.75rem 1rem;
  width: 100%;
  text-align: left;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}

.log-content {
  display: none;
  margin-top: 0.5rem;
  background: #f5f0e6;
  padding: 1rem;
  border-left: 4px solid #1c2b45;
}

.log-content, p {
  padding: 1rem;
}

.logo-banner {
  background: url("../img/hr_logo.png") no-repeat center center;
  background-size: contain;
  width: 100%;
  height: 500px;
}

/*.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

.gallery-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  object-fit: cover;
}*/

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  gap: 0; /* no space between */
  justify-content: center;
}

.gallery-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 43, 69, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

.close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #f5f0e6;
  cursor: pointer;
  z-index: 10000;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .side-nav {
    display: none;
  }

  .screen-section {
    padding: 1rem;
  }

  h1, h2 {
    font-size: 2rem;
  }
  
  .logo-banner {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .member-card img {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  html, body {
    background: #1b1b1b;
    color: #f5f0e6;
  }
  
.bg-blue {
  background: #07285f;
}

h1, h2 {
  color: #fff;
}
}