.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal .gallery-modal-dialog {
  background: #F7F3EF;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 1000px;
  width: 90vw;
  position: relative;
}

.gallery-modal .gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
}

.gallery-modal .gallery-modal-body {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gallery-modal .gallery-modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
}

.gallery-modal .gallery-modal-close .icon,
.gallery-modal .gallery-modal-nav .icon {
  width: 24px;
  height: 24px;
  color: rgba(59, 46, 42, 0.7);
}

.gallery-modal .gallery-modal-nav:hover {
  border-radius: 8px;
  border: 1px solid rgba(195, 162, 122, 0.5);
  background: rgba(195, 162, 122, 0.08);
}

.gallery-modal .gallery-modal-content {
  flex: 1;
  text-align: center;
}

.gallery-modal .gallery-modal-image {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal .gallery-modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.gallery-modal .gallery-modal-caption {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--primary);
  margin: 24px 0 8px;
}

.gallery-modal .gallery-modal-counter {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}

@media (max-width: 1090px) {
  .gallery-modal {
    align-items: stretch;
  }

  .gallery-modal .gallery-modal-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    padding: 12px;
  }

  .gallery-modal .gallery-modal-body {
    gap: 8px;
  }

  .gallery-modal .gallery-modal-image {
    height: calc(100vh - 80px);
  }

  .gallery-modal .gallery-modal-caption {
    font-size: 16px;
    margin: 12px 0 4px;
  }

  .gallery-modal .gallery-modal-counter {
    font-size: 12px;
  }

  .gallery-modal .gallery-modal-close {
    top: 8px;
    right: 8px;
  }

  .gallery-modal .gallery-modal-nav .icon,
  .gallery-modal .gallery-modal-close .icon {
    width: 20px;
    height: 20px;
  }
}


