.archive {
  padding: 2em 0;
  padding-top: 5vw;
  height: fit-content;
}

.archive-header {
  padding: 1em;
  padding-right: 3vw;
  display: flex;
}

.archive-header .white-space {
  flex: 2;
}

.archive-header .archive-h2 {
}

.archive-header .archive-h2 h2 {
  font-size: 2rem;
}

.archive-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-dark);
  padding: 0.5em 0;
}

.archive-shots {
  display: flex;
  gap: 0.5em;
}

.archive-shots .img {
  position: relative;
  width: 100px;
  aspect-ratio: 5/4;
  will-change: transform;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.archive-shots .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.archive-shots .img:hover {
  transform: scale(1.05);
  z-index: 10;
}

.archive-shots .img:hover::after {
  opacity: 1;
}

.archive-info {
  display: flex;
}

.archive-title {
  /* text styles */
}

.archive-title h3 {
  font-size: 1rem;
}

.archive-year {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .archive-item {
    flex-direction: column-reverse;
    gap: 0.5em;
    padding: 1em 0;
  }

  .archive .white-space {
    display: none;
  }

  .archive-shots {
    flex-wrap: wrap;
  }

  .archive-shots .img {
    width: 70px;
  }

  .archive {
    padding-top: 12vw;
  }
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    visibility 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  padding: 0 3vw;
  transform: scale(0.8) translateY(50px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-image {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-image:hover {
  transform: scale(1.02);
}

.modal-close {
  position: absolute;
  top: -36px;
  right: 3%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  font-family: identity;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.modal-close:hover {
  color: #fff;
  opacity: 0.7;
  text-underline-offset: 6px;
}

@media (min-width: 901px) {
  .image-modal {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="24" viewBox="0 0 60 24"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="sans-serif" font-size="12" font-weight="bold" fill="white">CLOSE</text></svg>') 30 12, pointer;
  }
  
  .image-modal .modal-close {
    display: none;
  }
}