* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  background: #fff;
  color: #2d2d2d;
}

main {
  text-align: left;
  padding: 3.5rem 2rem 2rem 6rem;
  max-width: 42rem;
}

main h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  padding-left: 1.5rem;
}

main ul {
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 1rem;
}

.press-slideshow {
  margin: 1.25rem 0 1.75rem;
  padding-left: 0;
  width: calc(100vw - 8rem);
  max-width: none;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  .press-slideshow {
    padding-left: 0;
    width: calc(100vw - 2.5rem);
  }

  .press-slideshow-track img {
    height: 140px;
  }

  .press-slideshow-track.is-ready {
    animation-duration: 16s;
    -webkit-animation-duration: 16s;
  }
}

.press-slideshow-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.press-slideshow-track.is-ready {
  animation: press-scroll 40s linear infinite;
  -webkit-animation: press-scroll 40s linear infinite;
}

.press-slideshow-track img {
  height: 180px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

@keyframes press-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.375rem));
  }
}

.social {
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social a {
  color: #2d2d2d;
  text-decoration: none;
  display: inline-flex;
  opacity: 0.7;
}

.social a:hover {
  opacity: 1;
}

.social svg {
  display: block;
}

@media (max-width: 768px) {
  main {
    padding: 2rem 1.25rem 2rem 1.25rem;
  }
  main h1 {
    padding-left: 0;
  }
  main ul {
    padding-left: 1.25rem;
  }
  .social {
    padding-left: 1.25rem;
  }
}

.tagline {
  color: #2d2d2d;
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

.intro {
  max-width: 360px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  color: #2d2d2d;
}

nav a {
  color: #2d2d2d;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main a {
  color: #2d2d2d;
  text-decoration: underline;
}

main a:hover {
  text-decoration: none;
}

.home main li a {
  color: #0066cc;
  font-weight: 400;
}

.home main li a:hover {
  color: #0052a3;
}

.press li.back-home {
  list-style: none;
}

.press li.back-home a {
  color: #0066cc;
  font-weight: 400;
}

.press li.back-home a:hover {
  color: #0052a3;
}

/* Beyond Oceans slideshow modal */
.slideshow-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.slideshow-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.slideshow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.slideshow-container {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slideshow-slides {
  position: relative;
  width: 800px;
  max-width: 85vw;
  height: 600px;
  max-height: 80vh;
}

.slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slideshow-img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-close,
.slideshow-prev,
.slideshow-next {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.slideshow-close:hover,
.slideshow-prev:hover,
.slideshow-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slideshow-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  font-size: 2rem;
  line-height: 1;
}

.slideshow-prev {
  flex-shrink: 0;
}

.slideshow-next {
  flex-shrink: 0;
}

/* Press video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-container {
  position: relative;
  z-index: 1;
  width: min(900px, 90vw);
}

.video-container video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.video-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
