@font-face {
  font-family: Montserrat;
  src: url("fuentes/Montserrat-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Semi Bold";
  src: url("fuentes/Montserrat-SemiBold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Muli;
  src: url("fuentes/Muli.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Lato Black";
  src: url("fuentes/Lato-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: white; color: #000; font-family: Muli, Arial, sans-serif; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #0074a8; outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 5; background: white; color: #000; padding: 12px; }
.skip:focus { top: 10px; }
.panel {
  position: relative;
  overflow: hidden;
  /* One design unit equals a pixel on Marina's original 1140px canvas. */
  --u: min(1px, .087719298vw);
}
.canvas {
  position: relative;
  width: calc(1140 * var(--u));
  height: calc(var(--height) * var(--u));
  margin: 0 auto;
}
.item {
  position: absolute;
  top: calc(var(--y) * var(--u));
  left: calc(var(--x) * var(--u));
  width: calc(var(--w) * var(--u));
}
@media (min-width: 768px) { .panel.mobile-only, .item.mobile-only { display: none; } }
.copy { text-align: center; display: flow-root; }
.copy :is(.t1, .t2, .t3, .t4, .t5) {
  color: black;
  margin: 0 0 calc(8 * var(--u));
  line-height: 1.1;
  font-weight: 500;
}
.t1, .t2 { font-family: "Montserrat Semi Bold", Montserrat, sans-serif; }
.t1, .t3 { font-size: calc(45 * var(--u)); }
.t2 { font-size: calc(36 * var(--u)); }
.t4 { font-size: calc(35 * var(--u)); }
.copy .t5 { font-size: calc(25 * var(--u)); line-height: 1; }
.copy span[style*="font-size:30px"] { font-size: calc(30 * var(--u)) !important; }
.copy strong { font-weight: 700; }
.photograph figure { overflow: hidden; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.photograph img { display: block; width: 100%; height: auto; }
.group { height: calc(var(--h) * var(--u)); }
.film video {
  display: block;
  width: 100%;
  height: calc(var(--h) * var(--u));
  border: var(--border);
  background: black;
  object-fit: contain;
}
.action a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: calc(var(--h) * var(--u));
  background: var(--bg);
  color: var(--color);
  border: var(--border);
  border-radius: var(--radius);
  font: 900 calc(var(--size) * var(--u)) / 1.15 "Lato Black", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}
.action a:hover { filter: brightness(.93); }
.action img { width: calc(35 * var(--u)); height: auto; }
.waves-separator {
  pointer-events: none;
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 60px;
}
.waves-separator use { animation: wave-drift 10s linear -2s infinite; }
.waves-separator .parallax2 use { animation-duration: 8s; animation-direction: reverse; }
.waves-separator .parallax3 use { animation-duration: 6s; }
.waves-separator .parallax4 use { animation-duration: 4s; animation-direction: reverse; }
@keyframes wave-drift { from { transform: translateX(85px); } to { transform: translateX(-90px); } }

.album { height: calc(var(--h) * var(--u)); }
.gallery, .slides, .slide { height: 100%; min-width: 0; }
.gallery, .slides { position: relative; }
.slides {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery.is-ready .slides { scrollbar-width: none; }
.gallery.is-ready .slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-bar { position: absolute; inset: 0; pointer-events: none; }
.count, .gallery-controls button { background: #151515b8; color: #fff; }
.count {
  position: absolute; bottom: 8px; left: 8px;
  padding: 3px 8px; font: 14px/1.4 Arial, sans-serif; border-radius: 4px;
}
.icon { width: 1.3em; height: 1.3em; }
.gallery-controls button, .viewer button {
  display: grid; place-items: center; border: 0; border-radius: 50%; width: 42px; height: 42px;
}
.gallery-controls button { position: absolute; pointer-events: auto; }
.gallery-controls [data-action="prev"], .gallery-controls [data-action="next"] { top: 50%; transform: translateY(-50%); }
.gallery-controls [data-action="prev"] { left: 7px; }
.gallery-controls [data-action="next"] { right: 7px; }
.gallery-controls [data-action="expand"] { right: 7px; bottom: 7px; }
.gallery-controls [data-action="pause"] { right: 54px; bottom: 7px; }
.gallery-controls button:hover, .gallery-controls button:focus-visible { background: #161616; }
[hidden] { display: none !important; }
dialog { border: none; color: white; background: #171717; max-width: 96vw; width: min(990px,96vw); padding: 0; border-radius: 5px; }
dialog::backdrop { background: #000c; }
.viewer { padding: 46px 12px 8px; display: grid; justify-items: center; }
.viewer img { width: 100%; height: min(70dvh,720px); object-fit: contain; }
.viewer button { background: transparent; color: white; }
.viewer button:hover { background: #444; }
.viewer-close { position: absolute; right: 4px; top: 2px; }
.viewer-controls { display: flex; align-items: center; gap: 12px; }

/* On a phone the original stacks its pictures and text in a different order. */
@media (max-width: 767px) {
  .panel { --u: 1px; }
  .canvas {
    display: flex; flex-direction: column;
    width: calc(100% - 30px); max-width: 610px; height: auto;
  }
  .item {
    position: relative; inset: auto; width: 100%; height: auto; max-width: var(--max);
    margin-inline: auto; padding: var(--pad); order: var(--order);
  }
  .group { display: flex; flex-direction: column; }
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .copy { text-align: var(--align); overflow-wrap: break-word; }
  .copy [style*="text-align"] { text-align: inherit !important; }
  .copy span[style*="font-size"] { font-size: inherit !important; }
  .copy .t1 { font-size: 25px; }
  .copy .t2, .copy .t5 { font-size: 16px; }
  .copy .t3, .copy .t4 { font-size: 20px; }
  .film video { height: auto; aspect-ratio: 1280 / 816; }
  .album .gallery { height: var(--mh); }
  .album .gallery-2 { height: auto; aspect-ratio: 335 / 538; }
  .action a { min-height: 51px; font-size: 16px; }
  .action img { width: 26px; }
}
@media (max-width: 350px) {
  .canvas { width: calc(100% - 16px); }
  .photograph { padding-left: min(30px,8vw); padding-right: min(30px,8vw); }
}
@media (prefers-reduced-motion: reduce) {
  .waves-separator use { animation: none; }
}

/* Enlaces a los dos perfiles que acompaña el mosaico de Marina. */
#instagram .perfiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(12 * var(--u));
}
#instagram .perfiles a { white-space: nowrap; }
.mosaico-instagram { display: block; }
@media (max-width: 767px) {
  #instagram .perfiles { max-width: 540px; }
  #instagram .perfiles a { min-height: 44px; font-size: 15px; }
}
@media (max-width: 540px) {
  #instagram .perfiles { max-width: 340px; grid-template-columns: 1fr; gap: 8px; }
}
