/* Generated by scripts/apply-theme.sh — do not edit by hand. */

/* --- gallery --- */
.c-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.c-gallery__item {
  margin: 0;
}
.c-gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.c-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* --- mailto-form --- */
.c-mailto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}
.c-mailto-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.c-mailto-form__field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.c-mailto-form__field input,
.c-mailto-form__field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
}
.c-mailto-form__field textarea {
  min-height: 6rem;
  resize: vertical;
}
.c-mailto-form__required {
  color: #c00;
}
.c-mailto-form__submit {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.c-mailto-form__submit:hover {
  background: #444;
}

/* --- media-section --- */
.c-media-section {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: var(--spacing-section);
}

.c-media-section__media {
  margin: 0;
}

.c-media-section__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.c-media-section__media figcaption {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

.c-media-section--image-left,
.c-media-section--image-right {
  grid-template-columns: minmax(16rem, 2fr) minmax(0, 3fr);
}

.c-media-section--image-right {
  grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr);
}

.c-media-section--image-left .c-media-section__media,
.c-media-section--image-right .c-media-section__prose {
  grid-column: 1;
}

.c-media-section--image-left .c-media-section__prose,
.c-media-section--image-right .c-media-section__media {
  grid-column: 2;
}

@media (max-width: 48rem) {
  .c-media-section--image-left,
  .c-media-section--image-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-media-section--image-left .c-media-section__media,
  .c-media-section--image-left .c-media-section__prose,
  .c-media-section--image-right .c-media-section__prose,
  .c-media-section--image-right .c-media-section__media {
    grid-column: 1;
  }
}

/* --- prose --- */
/* prose uses global typography from the theme (scaffold/src/css/themes/<theme>.css).
   No component-scoped CSS needed for v1. If future themes want to scope typography
   inside .c-prose specifically, add rules here. */

/* --- resend-form --- */
.c-resend-form {
  max-width: 480px;
}

.c-resend-form__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-resend-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.c-resend-form__field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.c-resend-form__field input,
.c-resend-form__field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
}

.c-resend-form__field textarea {
  min-height: 6rem;
  resize: vertical;
}

.c-resend-form__required {
  color: #c00;
}

.c-resend-form__turnstile {
  margin-block: 1rem;
}

.c-resend-form__submit {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.c-resend-form__submit:hover:not(:disabled) {
  background: #444;
}

.c-resend-form__submit:disabled {
  cursor: default;
  opacity: 0.6;
}

.c-resend-form__error {
  margin: 0;
  color: #c00;
  font-size: 0.9rem;
}

.c-resend-form__success {
  margin: 0;
  font-weight: 600;
}
