.shot-mosaic {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 168px 168px;
  gap: 3px;
  margin: 0 0 28px;
}

.shot-mosaic button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #e4ddd2;
  cursor: pointer;
}

.shot-mosaic button:first-child {
  grid-row: 1 / span 2;
}

.shot-mosaic button.is-more { display: none; }

.shot-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shot-mosaic button:hover img,
.shot-mosaic button:focus-visible img {
  transform: scale(1.04);
}

.shot-mosaic span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(16, 40, 63, 0.38);
  color: #fff;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

dialog.photo-preview {
  position: fixed;
  inset: 36px 16px 16px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.photo-preview::backdrop {
  background: rgba(16, 40, 63, 0.62);
}

dialog.photo-preview .photo-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.photo-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f1ec;
  color: #173038;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.photo-preview-stage {
  position: relative;
  height: 100%;
  background: #10283f;
}

dialog.photo-preview .photo-preview-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  background: none;
}

.photo-preview-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #173038;
  box-shadow: 0 8px 20px rgba(16, 40, 63, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.photo-preview-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-preview-nav.is-prev { left: 14px; }
.photo-preview-nav.is-next { right: 14px; }

.photo-preview-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 16px 12px;
  overflow: hidden;
}

.photo-preview-form .agent {
  gap: 10px;
  margin-bottom: 6px;
}

.photo-preview-form .agent-photo {
  width: 52px;
  height: 52px;
}

.photo-preview-form h2 {
  margin: 0;
  color: #173038;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.photo-preview-form .lead-note { display: none; }

.photo-preview-form label {
  display: block;
  margin-top: 6px;
  color: #173038;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.photo-preview-form label:has(textarea) {
  position: relative;
  flex: 1 1 auto;
  min-height: 72px;
}

.photo-preview-form input,
.photo-preview-form textarea {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 32, 38, 0.16);
  border-radius: 10px;
  background: #f7f8f8;
  color: #173038;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.photo-preview-form label:has(textarea) textarea {
  position: absolute;
  inset: 18px 0 0;
  width: 100%;
  height: auto;
  min-height: 0;
  resize: none;
}

.photo-preview-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #1b2428;
  color: #fff;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  cursor: pointer;
}

.photo-preview-form button[type="submit"]:hover {
  background: #2c363b;
}

.photo-preview-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.photo-preview-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(16, 40, 63, 0.2);
  border-radius: 12px;
  color: #10283f;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.photo-preview-contact a:hover {
  background: #f3f1ec;
}

@media (max-width: 900px) {
  .shot-mosaic {
    grid-template-rows: 140px 140px;
  }

  dialog.photo-preview {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  dialog.photo-preview .photo-preview-card {
    grid-template-columns: 1fr;
    grid-template-rows: 34vh minmax(0, 1fr);
    border-radius: 0;
  }

  dialog.photo-preview .photo-preview-stage {
    height: 34vh;
  }

  .photo-preview-contact { display: none; }

  .photo-preview-form {
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  .shot-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 210px 120px 120px;
  }

  .shot-mosaic button:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
