/* ==================================================
   SHARED LISTING CARD COMPONENT
   ================================================== */

/* Intro copy spacing */

.prose p {
  margin: 1em 0;
  text-align: left;
}

/* Listing grid */

.listing-grid {
  list-style: none;
  margin: 1.25em 0 1.5em;
  padding: 0;
  display: grid;
  gap: 1.5em;
  grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
  align-items: stretch;
}


/* Card container */

.listing-card {
  height: 100%;
  width: 100%;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0.32em;
  background: #fff;
  overflow: hidden; /* keeps rounded corners clean for the full-card link */
}

/* Entire-card link: stack content vertically (prevents weird 2-column auto-placement) */

.listing-link {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  height: 100%;
  padding: 0.9em;
  color: inherit;
}

/* Media */

.listing-media {
  margin: 0;
}
.listing-media img {
  display: block;
  width: 100%;
  height: auto;

  /* Consistent thumbnail shape + CLS stability */

  aspect-ratio: 3 / 2;
  object-fit: cover;
  
  border-radius: 0.32em;
  box-shadow: 0 0.625em 1.6em rgba(0,0,0,0.2);
}

/* Card header */

.listing-header {
  text-align: center;
}
.listing-title {
  margin: 0;
  text-transform: uppercase;
  font-size: 1.2em;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
}
.listing-description {
  margin-top: 0.35em;
  font-size: 0.95em;
  line-height: 1.35;
}

/* Meta */

.listing-meta {
  margin: 0;
  text-align: center;
  font-size: 1em;
  line-height: 1.35;
}

.listing-link .c-btn.is-cta {
  margin-top: auto;      /* pushes it to bottom */
  align-self: center;    /* keeps gray tight to text */
  font-size: 0.95em;
}


/* Make the entire listing card feel clickable */

.listing-card:hover,
.listing-card:focus-within {
  box-shadow: 0 0.625em 1.6em rgba(0,0,0,0.12);
}

/* Keyboard focus: apply a visible focus ring to the whole card */

.listing-link:focus-visible {
  outline: currentColor solid 2px;
  outline-offset: 0.25em;
}

/* Also give a subtle visual cue on focus/hover */

.listing-link:hover,
.listing-link:focus-visible {
  text-decoration: none;
}

.listing-link:hover .c-btn.is-cta {
  background: #fff;
}


/* ==================================================
   WORKSHOP CALENDAR PAGE
   ================================================== */

#calendar {
  margin: 1.25em 0 0;
}
#calendar .calendar-note,
#calendar .future-note {
  margin: 0.75em 0 1.1em;
  text-align: center;
}


/* Quick actions - Calendar Page */

.page-actions {
  margin: 1.25em 0;
}
.page-actions h2 {
  margin: 0.75em 0 0.5em;
}
.page-actions .actions {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: center;
}

.page-actions .c-btn {
  font-size: 0.95em;
}


/* Year blocks - Calendar Page*/

.year-block {
  margin: 1.75em 0;
}
.calendar-year {
  margin: 1.25em 0 0;
  text-align: center;
}


/* On-page nav - Calendar Page*/

nav.toc {
  margin: 1.25em 0 0.75em;
}
nav.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: center;
}


/* How to choose - Calendar Page*/

.how-to-choose {
  margin: 1.25em 0 1.5em;
}
.how-to-choose h2 {
  margin: 0.75em 0 0.5em;
}
.how-to-choose ul {
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 0.6em;
}
.how-to-choose li {
  padding: 0.7em 0.9em;
  border-radius: 0.32em;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}


/* ==================================================
   PARTICIPANT GALLERY HUB
   ================================================== */

.participant-gallery-hub-page .image-submission-info p {
    margin-bottom: 1rem;
}

.participant-gallery-hub-page .image-submission-info ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.participant-gallery-hub-page .image-submission-info li {
    margin-bottom: 0.5rem;
}

.participant-gallery-hub-page .image-submission-info p,
.participant-gallery-hub-page .image-submission-info ul {
    text-align: justify;
    overflow-wrap: break-word; /* modern replacement for word-wrap */
    hyphens: auto;
}


 /* ==================================================
   IMAGE COLLECTIONS HUB
   ================================================== */  


/* Breakpoints */

@media screen and (min-width: 800px) {
  .prose p {
    font-size: 1.1em;
  }

  .how-to-choose ul {
    grid-template-columns: repeat(auto-fit, minmax(22em, 1fr));   /* ---How to choose - Calendar Page---*/
  }
}
