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

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  background-color: #272727;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

.slideshow-wrapper {
  display: flex;
  align-items: flex-start;
}

.navigation {
  background-color: #333;
  padding: 0;
  margin-right: 3px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  justify-content: start;
}

.nav-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.nav-box {
  width: 23px;
  height: 17px;
  background-color: white;
  border: 1px solid #ccc;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.nav-box:hover {
  opacity: 0.6;
}

.nav-box.active {
  opacity: 1;
}

.slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#main-image {
  max-width: min(1100px, 90vw);
  max-height: 85vh;
  object-fit: contain;
}

.slideshow-controls {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 20px;
  width: 100%;
}

.btn-control {
  height: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-control:hover {
  opacity: 1;
}

.btn-control:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Homepage Styles */
.homepage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 100vh;
  width: 100vw;
}

.slideshow-wrapper {
  display: none;
}

.slideshow-wrapper.active {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: 100vh;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.top-nav {
  background-image: url('img/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 138px auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0 10px 40px;
}

.top-nav-logo {
  display: none;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.home-column-1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-image {
  max-width: 650px;
  width: 100%;
  height: auto;
}

.home-column-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.home-title img {
  max-width: 260px;
  height: auto;
}

.home-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-links a, .top-nav-links a {
  color: #D5BA75;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.home-links a:hover, .top-nav-links a:hover {
  opacity: 1;
}

.separator {
  color: #D5BA75;
  font-size: 14px;
  opacity: 0.5;
}

.btn-next-home {
  height: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-next-home:hover {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  background-color: #272727;
  color: white;
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #D5BA75;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #D5BA75;
}

.lightbox-content p {
  line-height: 1.6;
  margin-bottom: 16px;
}
.lightbox-content p a {
color: #D5BA75
}
@media (max-width: 768px) {
  .slideshow-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .navigation {
    margin-right: 0;
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
  }
  
  .nav-grid {
    display: block;
    overflow: hidden;
  }
  
  .nav-box {
    width: 15px;
    height: 15px;
    float: left;
    margin-right: 3px;
    margin-bottom: 3px;
  }
  
  #main-image {
    max-width: min(1100px, 95vw);
    max-height: 75vh;
  }
}