/* Interviews use the same column edges for every publisher. */
.press-layout {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.press-title {
  margin: 0 0 clamp(1rem, 3vw, 2.5rem);
  color: var(--navy);
  font: 500 clamp(2rem, 4vw, 3.6rem)/1.08 var(--font-display);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.press-entry {
  display: grid;
  grid-template-columns: clamp(7.25rem, 14vw, 12.5rem) minmax(0, 1fr) minmax(9.5rem, auto);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.1rem, 2.1vw, 1.7rem);
  border-top: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
}

.press-entry:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
}

.press-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 4.5rem;
}

.press-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.press-brand--financial img { max-height: 4.1rem; }
.press-brand--nissan img { max-height: 3.35rem; }
.press-brand--spotify {
  gap: .45rem;
  color: #133f31;
  font: 700 clamp(1.05rem, 1.8vw, 1.5rem)/1 var(--font-display);
  letter-spacing: -.055em;
}

.audio-symbol {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: #25d866;
}

.audio-symbol i {
  width: 2px;
  height: 32%;
  border-radius: 9px;
  background: #093124;
}

.audio-symbol i:nth-child(2), .audio-symbol i:nth-child(4) { height: 49%; }
.audio-symbol i:nth-child(3) { height: 68%; }

.press-source {
  margin: 0 0 .35rem;
  color: #4b7068;
  font: 700 .64rem/1.5 var(--font-display);
  letter-spacing: .11em;
}

.press-copy h3 {
  margin: 0;
  color: var(--navy);
  font: 550 clamp(1.18rem, 2vw, 1.7rem)/1.16 var(--font-display);
  letter-spacing: -.037em;
  text-wrap: pretty;
}

.press-summary {
  max-width: 68ch;
  margin: .45rem 0 0;
  color: #435354;
  font: 400 .91rem/1.55 var(--font-display);
}

.press-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .65em;
  min-height: 44px;
  color: #174e46;
  font: 650 .8rem/1.3 var(--font-display);
  text-decoration: none;
}

.press-link:hover span:first-child, .press-link:focus-visible span:first-child {
  text-decoration: underline;
  text-underline-offset: .28em;
}

.press-arrow {
  display: inline-grid;
  place-items: center;
  width: 2.15em;
  height: 2.15em;
  border: 1px solid #8daaa1;
  border-radius: 50%;
  font-size: 1.1em;
}

/* A vertical crop suits the small MEDS group. Panoramas keep every person
   in frame, with light from the photograph extended into spare margins. */
#galeria.gallery {
  background: #0d191d;
}

.gallery-name {
  position: absolute;
  top: 0;
  margin: 0;
  inset-inline: clamp(.9rem, 2.4vw, 2.3rem);
  height: 3.45rem;
  align-content: center;
  color: #f2f6ef;
  font: 500 clamp(1.18rem, 2.4vw, 1.7rem)/1 var(--font-display);
  letter-spacing: -.045em;
}

.photo-wall {
  position: absolute;
  inset: 3.45rem clamp(.45rem, 1vw, 1rem) clamp(.45rem, 1vw, 1rem);
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "meds meds meds mexico mexico mexico mexico mexico mexico session session session npride npride npride npride"
    "meds meds meds workshop workshop workshop workshop workshop workshop workshop certificate certificate certificate peru peru peru"
    "auditorium auditorium auditorium auditorium auditorium auditorium talk talk talk talk talk vielco vielco vielco vielco vielco";
  gap: clamp(3px, .45vw, 7px);
}

.photo-meds { grid-area: meds; }
.photo-mexico { grid-area: mexico; }
.photo-session { grid-area: session; }
.photo-npride { grid-area: npride; }
.photo-workshop { grid-area: workshop; }
.photo-certificate { grid-area: certificate; }
.photo-peru { grid-area: peru; }
.photo-auditorium { grid-area: auditorium; }
.photo-talk { grid-area: talk; }
.photo-vielco { grid-area: vielco; }

.photo-tile {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(6px, .9vw, 15px);
  background-color: #1c3235;
}

.photo-tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px;
  background: center / cover no-repeat var(--photo);
  filter: blur(14px) saturate(.55) brightness(.65);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(.66) saturate(.64) blur(1.3px);
  transition: filter .42s ease;
}

.photo-meds img {
  object-fit: cover;
  object-position: 51% 52%;
}

.photo-tile:focus-visible {
  outline: 3px solid #adf6df;
  outline-offset: -3px;
}

.photo-tile:focus-visible img {
  filter: none;
}

@media (hover: hover) and (pointer: fine) {
  .photo-tile:hover img { filter: none; }
}

@media (prefers-reduced-motion: no-preference) {
  #entrevistas.is-current .press-entry {
    animation: press-arrive .55s both cubic-bezier(.2,.7,.2,1);
  }
  #entrevistas.is-current .press-entry:nth-child(2) { animation-delay: .07s; }
  #entrevistas.is-current .press-entry:nth-child(3) { animation-delay: .14s; }
  #entrevistas.is-current .press-entry:nth-child(4) { animation-delay: .21s; }

  #entrevistas.is-current .audio-symbol i {
    animation: interview-wave 1.6s ease-in-out infinite alternate;
  }
  .audio-symbol i:nth-child(2n) { animation-direction: alternate-reverse !important; }
  .audio-symbol i:nth-child(3n) { animation-delay: -.7s !important; }

  .press-arrow { transition: transform .24s ease, background .24s ease; }
  .press-link:is(:hover, :focus-visible) .press-arrow {
    transform: translate(2px,-2px);
    background: #d7ebe1;
  }
}

@keyframes press-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes interview-wave {
  from { transform: scaleY(.42); }
  to { transform: scaleY(1); }
}

@media (max-width: 760px) {
  .press-entry {
    grid-template-columns: clamp(4.3rem, 18vw, 7rem) minmax(0, 1fr);
    column-gap: clamp(.85rem, 3vw, 1.4rem);
    row-gap: .25rem;
  }
  .press-brand { grid-row: 1 / 3; height: 3.45rem; }
  .press-brand--spotify { flex-flow: column; font-size: .82rem; }
  .press-brand--nissan img { max-height: 2.75rem; }
  .press-link { grid-column: 2; justify-self: start; }
  .press-source { font-size: .59rem; }
}

/* All source photographs are landscape; portrait screens get wider
   cells for the large groups and can scroll only within the gallery. */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  body.panel-mode #main > #galeria.gallery { overflow-y: auto !important; }
  .gallery-name { position: static; margin-inline: 1rem; }
  .photo-wall {
    position: static;
    margin: 0 .5rem .5rem;
    grid-template-columns: repeat(6, minmax(0,1fr));
    grid-template-rows: 26vw 26vw 31vw 36vw 35vw 32vw;
    grid-template-areas:
      "meds meds mexico mexico mexico mexico"
      "meds meds workshop workshop workshop workshop"
      "session session session npride npride npride"
      "certificate certificate talk talk talk talk"
      "peru peru peru vielco vielco vielco"
      "auditorium auditorium auditorium auditorium auditorium auditorium";
  }
}

@media (hover: none) {
  .photo-tile img { filter: brightness(.86) saturate(.87); }
  .photo-tile:focus-visible img { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-tile img { transition: none; }
}

.photo-tile { container-type: size; }

/* When a tile is wider than the original, trim ceiling/floor around
   the group. A narrower tile keeps the whole source image visible. */
@container (min-aspect-ratio: 4/3) {
  .photo-session img, .photo-vielco img, .photo-npride img {
    object-fit: cover;
  }
  .photo-vielco img { object-position: 50% 58%; }
  .photo-npride img { object-position: 50% 38%; }
}
@container (min-aspect-ratio: 31/20) {
  .photo-mexico img, .photo-peru img { object-fit: cover; }
  .photo-mexico img { object-position: 50% 70%; }
  .photo-peru img { object-position: 50% 63%; }
}
@container (min-aspect-ratio: 11/6) {
  .photo-workshop img, .photo-talk img, .photo-certificate img { object-fit: cover; }
  .photo-workshop img { object-position: 50% 54%; }
}
@container (min-aspect-ratio: 2/1) {
  .photo-auditorium img { object-fit: cover; }
}
