:root {
  --ocean-deep: #044657;
  --ocean: #027f8f;
  --lagoon: #25c0b1;
  --foam: #effdf8;
  --sand: #f7d9a1;
  --sun: #ffb84d;
  --coral: #ff6f61;
  --hibiscus: #d93674;
  --ink: #17343a;
  --muted: #5d777c;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 70px rgba(4, 70, 87, 0.22);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 184, 77, 0.34), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(37, 192, 177, 0.28), transparent 26rem),
    linear-gradient(180deg, #f7fff9 0%, #fff6e6 58%, #f1fbf9 100%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero__photo,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__photo {
  z-index: -3;
  background-image: url("assets/photos/cover/Isabel-35-cover.jpg");
  background-position: 52% 20%;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 38, 47, 0.86), rgba(3, 38, 47, 0.52) 44%, rgba(3, 38, 47, 0.14)),
    radial-gradient(circle at 24% 30%, rgba(255, 111, 97, 0.34), transparent 21rem),
    radial-gradient(circle at 74% 74%, rgba(37, 192, 177, 0.28), transparent 23rem);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
}

.brand,
.topbar__link,
.button,
.download-all,
.lightbox__download {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--sand), #fff7d8);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.topbar__link {
  padding: 13px 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 112px auto 0;
  padding: 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sand);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 720px;
  font-size: clamp(4.2rem, 13vw, 9rem);
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

h2 {
  font-size: clamp(2.2rem, 7vw, 4.6rem);
}

.hero__lead {
  max-width: 600px;
  margin: 28px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 17px 24px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.button--primary {
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--sand), #fff0bf);
}

.button--secondary {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
}

.wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 120px;
  color: #f7fff9;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.intro,
.gallery-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.intro__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: var(--card);
  border: 1px solid rgba(2, 127, 143, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ocean), var(--lagoon));
  border-radius: 18px;
}

.intro__card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.intro__card p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-section {
  padding: 44px 0 72px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  color: var(--hibiscus);
}

.gallery-toolbar {
  position: sticky;
  top: 10px;
  z-index: 5;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 22px;
  padding: 12px 14px 12px 20px;
  color: var(--ocean-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(2, 127, 143, 0.15);
  border-radius: 999px;
  box-shadow: 0 14px 42px rgba(4, 70, 87, 0.12);
  backdrop-filter: blur(18px);
}

.gallery-toolbar span {
  font-weight: 900;
}

.download-all {
  padding: 13px 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--coral), var(--hibiscus));
  border-radius: 999px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photo-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  cursor: pointer;
  background: #d8f5ef;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(4, 70, 87, 0.13);
  transform: translateZ(0);
}

.photo-card:nth-child(5n + 2) {
  transform: translateY(18px);
}

.photo-card:nth-child(7n + 3) {
  min-height: 250px;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-card:hover img,
.photo-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.photo-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 8px 11px;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(4, 70, 87, 0.72);
  border-radius: 999px;
}

.footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 34px max(24px, calc((100% - 1180px) / 2));
  color: white;
  background: linear-gradient(135deg, var(--ocean-deep), #072e3c);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  color: white;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 23, 29, 0.94);
}

.lightbox__panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(82px, 9vw) 1fr minmax(82px, 9vw);
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
}

.lightbox__close,
.lightbox__nav,
.lightbox__download {
  min-height: 54px;
  color: white;
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.lightbox__close {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0 20px;
}

.lightbox__figure {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  margin: 0;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.lightbox__figure figcaption {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.lightbox__nav {
  grid-row: 2;
  align-self: center;
}

.lightbox__nav--prev {
  grid-column: 1;
}

.lightbox__nav--next {
  grid-column: 3;
}

.lightbox__download {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--coral), var(--hibiscus));
}

@media (max-width: 980px) {
  .hero {
    min-height: 760px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(3, 38, 47, 0.64), rgba(3, 38, 47, 0.8)),
      radial-gradient(circle at 20% 18%, rgba(255, 111, 97, 0.34), transparent 18rem);
  }

  .hero__content {
    margin-top: 86px;
  }

  .intro,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 720px;
  }

  .topbar {
    padding: 18px 16px;
  }

  .topbar__link {
    display: none;
  }

  .hero__photo {
    background-position: 58% 20%;
  }

  .hero__content {
    margin-top: 178px;
    padding: 0 18px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 1.08rem;
  }

  .button,
  .hero__actions {
    width: 100%;
  }

  .intro {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1180px);
  }

  .intro__card {
    grid-template-columns: 1fr;
  }

  .gallery-section {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
  }

  .gallery-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .download-all {
    text-align: center;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .photo-card,
  .photo-card:nth-child(7n + 3) {
    min-height: 280px;
  }

  .photo-card:nth-child(5n + 2) {
    transform: none;
  }

  .lightbox__panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto;
    padding: 10px;
  }

  .lightbox__close {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .lightbox__figure img {
    max-height: calc(100vh - 230px);
    border-radius: 16px;
  }

  .lightbox__nav {
    grid-row: 3;
    width: 100%;
  }

  .lightbox__nav--prev {
    grid-column: 1;
  }

  .lightbox__nav--next {
    grid-column: 2;
  }

  .lightbox__download {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
