body {
    background-color: #F2F2F2;
}

.navbar {
    background-color: transparent;
}

.navbar-brand, .nav-link, .quarto-navbar-tools .bi, .quarto-color-scheme-toggle .i, span.navbar-toggler-icon {
    color: #414645;
}

.aa-SubmitIcon {
    fill: #414645;
}

/* Align title with grid */
.quarto-title-block {
  max-width: 2560px;
  margin: 0 auto;
  padding: 60px 60px 0;
}

.quarto-title {
  margin-left: 10;
  margin-right: 0;
}

/* Adjust content padding */
.quarto-container-body {
  padding: 60px 60px 0;
  /* padding-left: 10px;
  padding-right: 0; */
  max-width: 1200px; /* Set a max-width for the body content */
  margin: 0 auto; /* Center the body content */
}

/* Ensure full width for title banner */
.quarto-title-banner {
  /* margin-left: calc(-50vw + 50%); */
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50% + 30px);
  padding-right: calc(50vw - 50% + 30px);
}

/* Gallery things */
.gallery-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: calc(100% - 60px);
  max-width: 2560px;
  margin: 0 auto;
  padding: 30px;
}

.album-thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
}

.album-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.album-info {
    text-align: center;
  }

.album-title {
  text-align: center;
  padding: 10px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  color: #333;
  font-size: 1.35em;
}

.album-year {
    text-align: center;
    /* padding: 10px; */
    font-family: 'Times New Roman', serif;
    font-weight: 300;
    color: #333;
    font-size: 0.8em;
  }

.album-thumbnail:hover .album-overlay {
  opacity: 1;
}

.fullscreen-gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  z-index: 1000;
}

.close-button {
  position: absolute;
  top: 20px;

  right: 20px;
  background: none;
  border: none;
  color: black;
  font-size: 40px;
  cursor: pointer;
  z-index: 1002;
}

.gallery-title {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 1.5em;
    font-weight: 500;
    font-family: 'Times New Roman', serif;
    z-index: 1000;
  }

.gallery-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 50px;
}

.nav-button {
  background: none;
  border: none;
  color: black;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  padding: 20px;
}

.prev-button::before {
  content: "‹";
}

.next-button::before {
  content: "›";
}

body.gallery-open .navbar {
  display: none;
}

#current-image {
  max-width: 80%;
  max-height: 80%;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#current-image.fade-out {
  opacity: 0;
}

/* Loading indicator */
.image-container {
  position: relative;

  width: calc(100% - 120px);
  height: 80%;
  margin: 0 auto;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.gallery-image.active {
  opacity: 1;
}

/* Responsive adjustments for grid */
@media (min-width: 1600px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .album-title {
      font-size: calc(1.6rem + 0.5vw);
    }
  }

@media (max-width: 1600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .album-title {
    font-size: calc(1.6rem + 0.5vw);
  }
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .album-title {
    font-size: calc(1.4rem + 0.5vw);
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  }
  .album-title {
    font-size: calc(1.2rem + 0.5vw);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  .album-title {
    font-size: calc(1rem + 0.5vw);
  }
}

/* Responsive font sizes for album titles */
@media (min-width: 300px) {
  .album-title {
    font-size: calc(0.8rem + 0.5vw);
  }
}

/* Responsive adjustments for fullscreen gallery */
@media (max-width: 768px) {
  .gallery-content {
    padding: 0 20px;
  }

  .image-container {
    width: calc(100% - 60px);
    height: 90%;
  }

  .nav-button {
    font-size: 30px;
    padding: 10px;
  }

  .close-button {
    top: 10px;
    right: 10px;
    font-size: 30px;
  }

  .gallery-image {
    object-fit: scale-down;
  }
}

@media (max-width: 480px) {
  .gallery-content {
    padding: 0 10px;
  }

  .image-container {
    width: calc(100% - 40px);
  }

  .nav-button {
    font-size: 24px;
    padding: 5px;
  }

  .close-button {
    font-size: 24px;
  }
}

/* Copyright alert */

/* Add this CSS to your stylesheet */
/* Add this CSS to your stylesheet */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .modal-content {
    background-color: rgba(250,250,250,0.85);
    font-weight: 300;
    border-radius: 0;
    padding: 20px;
    padding-top: 40px;
    border: 1px solid rgba(250,250,250,0.85);
    width: 50%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .modal.show {
    opacity: 1;
  }
  
  .modal.show .modal-content {
    opacity: 1;
  }

  /* .copy-url-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-weight: bold;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .copy-url-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-weight: 450;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    align-items: center;
    justify-content: center;
  }
  
  .copy-url-button::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 1px;
    bottom: 5px;
    left: 10%;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  
  .copy-url-button:hover::after {
    transform: scaleX(1);
  }
  
  /* New class for clicked state
  .copy-url-button.clicked {
    color: #f2a94f;
  } */

  .copy-button {
    position: fixed;
    bottom: 20px;
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-weight: 450;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
  }
  
  #copy-url-button {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #copy-image-url-button {
    left: calc(50% - 120px);
    transform: translateX(-100%);
  }
  
  #copy-attribution-button {
    left: calc(50% + 120px);
    transform: translateX(0%);
  }
  
  .copy-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .copy-button.clicked {
    color: #f2a94f;
  }
  
  .copy-button::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 1px;
    bottom: 5px;
    left: 10%;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  
  .copy-button:hover::after {
    transform: scaleX(1);
  }