* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
}

main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1rem;
}

:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.snippet {
  text-align: center;
  padding: 2rem;
}

.snippet__heading {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1B2B3F;
}

.snippet__description {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: left;
}

.snippet__links-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1B2B3F;
}

.snippet__links-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.snippet__links-container .star-icon {
  font-size: 1.2rem;
}

.snippet__link {
  padding: 0.4rem 1.8rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.snippet__link--primary {
  background-color: #1B2B3F;
  color: white;
  font-weight: 600;
  align-content: center;
}

.snippet__link--primary:hover {
  background-color: #e9ece7;
  color: #13304a;
}

.snippet__link--secondary {
  background-color: #006D69;
  color: white;
  font-weight: 600;
  align-content: center;
}

.snippet__link--secondary:hover {
  background-color: #e9ece7;
  color: #076d59;
}

.snippet__link--description {
  color: #006D69;
  font-weight: 600;
}

.gallery {
  margin-top: 3rem;
  padding: 0 1rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 568px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.gallery__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gallery__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery__right .gallery__item--medium {
  aspect-ratio: 1 / 1.22;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f5f5f5;
  height: auto;
  aspect-ratio: 3/2;
}

.gallery__item--medium {
  aspect-ratio: 1/1.4;
  width: 100%;
}

.gallery__item--wide {
  aspect-ratio: 3/1;
  width: 100%;
}

.gallery__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
}

.gallery__play-button .play-icon {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.gallery__play-button .play-icon--default {
  opacity: 1;
}

.gallery__play-button .play-icon--hover {
  opacity: 0;
}

.gallery__play-button:hover .play-icon--default {
  opacity: 0;
}

.gallery__play-button:hover .play-icon--hover {
  opacity: 1;
}

.gallery__play-button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__copyright {
  margin-top: 2rem;
  text-align: left;
  font-size: 0.875rem;
  color: #333;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal.is-active {
  display: flex;
}

.modal.is-active + * {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.modal__content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  position: relative;
  width: 100%;
  max-width: 1260px;
  max-height: 70vh;
  align-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.modal__close:hover {
  filter: grayscale(0.2);
  transition: 0.3s;
}

.modal__close-icon {
  width: 48px;
  height: 48px;
}

.modal__close:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.modal__heading {
  color: #1B2B3F;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal__description {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal__description a {
  color: #006D69;
  text-decoration: none;
  font-weight: 600;
}

.modal__description a:hover {
  text-decoration: underline;
}

.modal__video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.modal__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

.modal__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 568px) {
  .snippet {
    padding: 1rem;
  }
  .snippet__heading {
    font-size: 1.5rem;
    text-align: left;
  }
  .snippet__description {
    font-size: 0.9rem;
  }
  .snippet__links {
    justify-items: left;
  }
  .gallery {
    margin-top: 0;
  }
  .gallery__row {
    grid-template-columns: 1fr;
  }
  .gallery__item {
    aspect-ratio: 3/2;
  }
  .gallery__item--medium {
    aspect-ratio: 1/1;
  }
}

@media (max-width: 568px) and (max-width: 568px) {
  .gallery__item--medium {
    aspect-ratio: 1/1.3;
  }
}

@media (max-width: 568px) {
  .gallery__item--wide {
    aspect-ratio: 16/9;
  }
  .modal {
    padding: 10px;
  }
  .modal__content {
    padding: 20px;
    height: 95vh;
    align-content: center;
  }
  .modal__close {
    top: 8px;
    right: 8px;
  }
  .modal__close-icon {
    width: 32px;
    height: 32px;
  }
  .modal__heading {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .modal__description {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .modal__video-container {
    margin: 0 -20px;
    width: calc(100% + 40px);
  }
}
