/* Modal Component Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF;
}

.modal-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border: 2px solid white;
}

.modal-info {
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
  text-align: left;
  padding: 0 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-details {
  margin-top: 1rem;
}

.modal-detail-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0.5rem;
}

.modal-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  width: 7rem;
  text-align: right;
  margin-right: 2rem;
}

.modal-value {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #FFF;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 0.8;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: opacity 0.2s ease;
}

.modal-nav:hover {
  opacity: 0.8;
}

.modal-prev {
  left: -60px;
}

.modal-next {
  right: -60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-nav {
    padding: 0.5rem;
    font-size: 1.5rem;
  }
  
  .modal-prev {
    left: -40px;
  }
  
  .modal-next {
    right: -40px;
  }
  
  .modal-label {
    width: 5rem;
    margin-right: 1rem;
    font-size: 0.85rem;
  }
}