/* Session galleries keep every photograph's original composition. */
.gallery-item-caption { align-items: flex-start; }
.gallery-item-caption p { line-height: 1.6; }
.gallery-photo { cursor: zoom-in; }
.gallery-photo:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.desktop-nav { gap: clamp(16px, 2.4vw, 36px); }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 0;
  padding: 22px clamp(16px, 4vw, 60px) 18px;
  margin: 0;
  overflow: hidden;
}
.session-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 16px; }
.session-header .eyebrow { color: #b9bbaf; font-size: 9px; margin-bottom: 6px; }
.session-header h2 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1; text-transform: uppercase; }
.session-header p:last-child { color: #b9bbaf; font-size: 11px; line-height: 1.6; margin-top: 7px; }
.session-header .lightbox-close { position: static; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #56584e; border-radius: 50%; margin-top: 2px; }
.lightbox-stage { height: auto; min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 20px; padding: 0; }
.lightbox-stage img { display: block; grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-stage:has(.lightbox-prev[hidden]) img { grid-column: 1 / -1; }
.lightbox-stage { position: relative; }
.lightbox-stage.is-loading img { opacity: 0; }
.lightbox-stage.is-loading::after { content: 'Cargando fotografía…'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #b9bbaf; font-size: 11px; pointer-events: none; }
.lightbox-stage.load-error::after { content: 'No se pudo cargar la fotografía.'; }
.lightbox-prev,.lightbox-next { width: 44px; height: 52px; min-width: 0; padding: 0; border: 1px solid #56584e; transition: background .2s, color .2s; }
.lightbox-prev:hover,.lightbox-next:hover { background: var(--paper); color: var(--ink); }
.lightbox-bottom { padding: 10px 64px; font-size: 10px; line-height: 1.5; min-height: 35px; }
#lightbox-count { font-variant-numeric: tabular-nums; color: var(--paper); letter-spacing: .15em; }
.session-thumbnails { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 9px; max-width: 100%; scrollbar-width: thin; scrollbar-color: #696b60 transparent; }
.session-thumbnails button { flex: 0 0 60px; width: 60px; height: 72px; border: 1px solid #56584e; background: #24261f; padding: 3px; transition: border-color .2s; }
.session-thumbnails button.active { border: 2px solid var(--red); padding: 2px; }
.session-thumbnails button:hover { border-color: var(--paper); }
.session-thumbnails button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.session-thumbnails img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Requested adjustment: remove only excess right-hand backdrop from this frame. */
.gallery-photo img[src="/assets/team-640.webp"],
.session-thumbnails img[src="/assets/team-640.webp"] {
  height: auto;
  aspect-ratio: 1280 / 933;
  object-fit: cover;
  object-position: left center;
}
.session-thumbnails button:has(img[src="/assets/team-640.webp"]) { display: grid; place-items: center; }
.lightbox-stage:has(img[src="/assets/team-1400.webp"]) { container-type: size; }
#lightbox-img[src="/assets/team-1400.webp"] {
  width: min(100%, calc(100cqh * 1280 / 933));
  height: auto;
  aspect-ratio: 1280 / 933;
  object-fit: cover;
  object-position: left center;
  justify-self: center;
}
.session-explore { display: flex; align-items: center; gap: 14px; border-top: 1px solid #44463d; padding-top: 12px; margin-top: 4px; font-size: 10px; }
.session-explore label { flex: 0 0 auto; color: #b9bbaf; }
.session-explore select { color: var(--paper); background: #24261f; border: 1px solid #56584e; border-radius: 0; min-width: 0; max-width: 330px; padding: 9px 30px 9px 12px; font: inherit; }
.keyboard-hint { margin-left: auto; color: #b9bbaf; font-size: 9px; }
.social-section { background: #eae9e3; border-top: 1px solid var(--line); }
.social-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.social-heading h2 { font-size: clamp(64px, 8vw, 125px); line-height: .88; }
.social-heading>p { max-width: 290px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #bfc0b7; border-bottom: 1px solid #bfc0b7; }
.social-card { display: flex; flex-direction: column; padding: 30px; position: relative; transition: background .25s; }
.social-card+.social-card { border-left: 1px solid #bfc0b7; }
.social-card:hover,.social-card:focus-visible { background: var(--paper); }
.social-card:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.social-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.social-card-top svg { width: 28px; height: 28px; }
.social-card-top>span { font-size: 25px; transition: transform .25s; }
.social-card:hover .social-card-top>span { transform: translate(3px,-3px); }
.social-card h3 { font: 700 clamp(28px, 3vw, 46px)/1 var(--display); margin-bottom: 9px; }
.social-handle { font-size: 11px; color: var(--red); }
.social-card>p { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 18px; margin-bottom: 30px; }
.social-action { font-size: 10px; font-weight: 700; line-height: 1.5; display: flex; justify-content: space-between; gap: 14px; margin-top: auto; }
.footer-links { flex-wrap: wrap; column-gap: 24px; row-gap: 15px; }
@media (min-width:701px) and (max-width:900px) {
  .header .brand img { width: 150px; }
  .desktop-nav { font-size: 11px; gap: 18px; }
  .header-cta { font-size: 10px; padding: 14px; }
  .social-card { padding: 24px 18px; }
}
@media (max-width:700px) {
  .lightbox[open] { padding: 15px 12px 12px; }
  .session-header { padding-bottom: 12px; gap: 12px; }
  .session-header h2 { font-size: 28px; }
  .session-header p:last-child { font-size: 10px; max-width: 270px; }
  .session-header .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .session-header .lightbox-close { flex-basis: 38px; width: 38px; height: 38px; font-size: 29px; }
  .lightbox-stage { grid-template-columns: 30px minmax(0,1fr) 30px; gap: 6px; }
  .lightbox-prev,.lightbox-next { width: 30px; height: 44px; font-size: 20px; }
  .lightbox-bottom { padding: 8px 36px; gap: 9px; font-size: 8px; }
  .session-thumbnails { gap: 7px; }
  .session-thumbnails button { flex-basis: 50px; width: 50px; height: 62px; }
  .session-explore { gap: 10px; font-size: 9px; padding-top: 10px; }
  .session-explore select { flex: 1; width: 0; padding: 10px 23px 10px 8px; }
  .keyboard-hint { display: none; }
  .social-heading { display: block; margin-bottom: 30px; }
  .social-heading h2 { font-size: clamp(61px,16vw,98px); }
  .social-heading>p { font-size: 12px; margin-top: 25px; }
  .social-grid { grid-template-columns: 1fr; }
  .social-card { padding: 25px 6px; }
  .social-card+.social-card { border-left: 0; border-top: 1px solid #bfc0b7; }
  .social-card-top { margin-bottom: 22px; }
  .social-card h3 { font-size: 38px; }
  .social-card>p { margin-top: 12px; margin-bottom: 24px; }
}
@media (max-height:600px) {
  .lightbox[open] { padding-top: 10px; padding-bottom: 9px; }
  .session-header { padding-bottom: 7px; }
  .session-header h2 { font-size: 25px; }
  .session-header p:last-child { display: none; }
  .session-thumbnails button { height: 46px; flex-basis: 42px; }
  .session-explore { padding-top: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  .social-card,.social-card-top>span,.session-thumbnails button,.lightbox-prev,.lightbox-next { transition: none; }
}
