/* BetaBrowser Page Styles */
/* Lightbox/Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  margin-top: 5vh;
  border: 2px solid var(--russet);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#modalCaption {
  margin: 15px auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--text-light);
  font-size: 1.2em;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--russet);
  text-decoration: none;
  cursor: pointer;
}

/* Header Styles */
.header-container {
  text-align: center;
  margin: 20px auto;
  padding: 0 20px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-container h1 {
  margin: 0 0 10px 0;
  padding: 0;
  width: 100%;
  white-space: nowrap;
}

.header-container .subtitle {
  font-size: 1.2em;
  opacity: 0.9;
  margin: 10px 0 0 0;
  width: 100%;
}

/* Removed line break after header */
.gallery-container {
  column-count: 3;
  column-gap: 15px;
  padding: 15px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 15px;
  display: inline-block;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .gallery-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-container {
    column-count: 1;
  }
}

.gallery-item {
  background: rgba(255, 221, 198, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(151, 78, 42, 0.3);
  break-inside: avoid;
  margin-bottom: 20px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-button {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background-color: var(--murrey);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: var(--russet);
}
