:root {
  --brand-blue: #060667;
  --primary-color: #ffd199;
  --secondary-color: #e39f94;
}
body {
  font-family: "Manrope", sans-serif;
  text-align: center;
  margin: 0;
  min-height: 100vh;
  background-color: var(--brand-blue);

  display: grid;
  place-items: center;

  padding: 50px;
  box-sizing: border-box;
}

main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border: 4px solid var(--secondary-color);
  padding: 50px 30px 30px;
}


/* Images */
.logo {
  display: block;
  width: min(100%, 250px);
  height: auto;
}
.ducks {
  width: min(60%, 500px);
  height: auto;
  margin-bottom: -80px;
}
main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/swoosh-fallback.png") center / cover no-repeat;
  background: url("images/swoosh.webp") center / cover no-repeat;
  z-index: -1;
}

.wrapper {
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: start;
}

h1 {
  font-weight: 500;
  color: var(--secondary-color);
  font-size: clamp(1rem, 4vw + 0.5rem, 4rem);
  width: min(100%, 30ch);
  margin: 0 auto;
  line-height: 1.16;
}

p {
  font-weight: 400;
  color: var(--primary-color);
  font-size: clamp(1rem, 1.75vw + 0.4rem, 2rem);
  width: min(100%, 50rem);
  margin: 0 auto;
  line-height: 1.25;
  text-align: start;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
}

a {
  color: var(--primary-color);
}

.gallery-modal-container {
  background: rgba(0, 0, 0, 0.75) !important;
}

.gallery-modal {
  background-color: var(--brand-blue) !important;
  border: 4px solid var(--secondary-color);
  border-radius: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  color: var(--primary-color);
}

.gallery-modal .swal2-title {
  width: 100%;
  padding: 0 0 0.75rem;
  text-align: left;
  color: var(--secondary-color);
  font-weight: 500;
}

.gallery-modal .swal2-html-container {
  margin: 0;
  color: var(--primary-color);
}

.gallery-modal .swal2-close {
  color: var(--primary-color);
  transition: color 160ms ease, opacity 160ms ease;
}

.gallery-modal .swal2-close:hover {
  color: var(--secondary-color);
}

.gallery-modal .swal2-close:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  max-height: 70vh;
  overflow: auto;
  padding: 0.25rem 0.35rem 0.25rem 0;
  scrollbar-color: var(--secondary-color) rgba(6, 6, 103, 0.5);
  scrollbar-width: thin;
}

.gallery-grid::-webkit-scrollbar {
  width: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(6, 6, 103, 0.45);
  border-radius: 999px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 999px;
}

.gallery-item {
  display: block;
  border: 2px solid rgba(227, 159, 148, 0.45);
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 24px rgba(6, 6, 103, 0.55);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.glightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--secondary-color);
  border-radius: 999px;
  background: rgba(6, 6, 103, 0.92);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.goverlay {
  background: rgba(6, 6, 103, 0.92) !important;
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  color: var(--primary-color);
  opacity: 0.9;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  color: var(--secondary-color);
}

@media (max-width: 980px) {
  .wrapper {
    flex-direction: column-reverse;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
  }

  .ducks {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img {
    transition: none;
  }

  .gallery-item:hover,
  .gallery-item:focus-visible {
    transform: none;
  }

  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: none;
  }
}
