body.is-locked { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none; /* click-through except panel */
  width: auto;
  height: auto;
  padding: 1rem;
}

.modal.is-open {
  display: block;
  pointer-events: auto;
}

.modal__panel {
  background: #fff;
  color: #111;
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 0px 100px rgba(0,0,0,.25);
  position: relative;
  height: calc(100vh - 6rem);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 4rem;
  cursor: pointer;
  line-height: 1;
  font-weight: 100;
  user-select: none;
}

.modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 2rem;
}

.modal__content p {
  margin: 0;
  line-height: 1.45;
  max-width: 80ch;
}

.modal__subtitle {
  margin-top: 5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ededed;
}

.modal__gallery {
  margin-top: 1.5rem;
}

.modal__gallery-title {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 1rem;
}

.modal__gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.modal__gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal__gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.modal__gallery-item figcaption {
  font-size: 0.95rem;
  color: #111;
  line-height: 1.15;
}

/* responsive */
@media (max-width: 900px) {
  .modal__gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .modal__gallery-grid { grid-template-columns: 1fr; }
}
