body {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  background: #fff;
  color: #333;
}

body.gray-mode {
  background: transparent;
  color: #333;
}

#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  background: #fff;
  pointer-events: none;
}

body.gallery-page #bg-video {
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  opacity: 0.72;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-style: italic;
}
h1 {
  font-size: 3rem;
  font-weight: 600;
  margin: 1rem 0;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3rem;
}
h3 {
  font-weight: 300;
  margin: 0.5rem 0;
  font-style: italic;
}

.logo {
  height: 50px;
  width: 100px;
  object-fit: cover;
}
/* Navbar container */
.navbar {
  background-color: rgba(255, 255, 255, 0.596);
  width: 100%;
  margin: auto;
  position: fixed;
  top: 0;
  z-index: 1000;
  height: 50px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.navbar.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 32px 0 rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow 0.3s;
}

/* Center the nav items */
.nav-links {
  list-style: none;
  display: flex;
  width: 80%;
  justify-self: center;
  justify-content: space-around; /* evenly spaced */
  align-items: center;
  padding: 15px;
  margin: 0;
}

/* Link styling */
.nav-links li a {
  text-decoration: none;
  font-family: "Hanken Grotesk", sans-serif;
  color: #cbcbcb;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

/* Hover effect */
.nav-links li a:hover {
  color: #fff;
  background-color: #ffffff66;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.nav-links li a.active {
  color: #fff;
  background-color: #ffffff66;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  color: white;
  position: relative;
  margin-top: 8rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

body.gallery-page .hero-content h1 {
  color: #3e555a;
}

body.contact-page .hero-content h1 {
  color: #273253;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #272853;
  min-height: 1.5rem; /* Prevent h1 from shifting when p is empty */
}

body.gallery-page .hero-content p {
  color: #222d2e;
}

.contact-form {
  padding: 2rem;
  margin: 0 auto;
  width: 70%;
  text-align: left;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

label {
  font-family: "Hanken Grotesk", sans-serif;

  font-weight: 400;
  color: #232d3f;
}

input,
textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 25px;
  flex: 1;
  font-size: 1rem;
  font-family: "Hanken Grotesk", sans-serif;
  color: #232d3f;
  background: #f5f5f5;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #378797;
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  font-family: "Hanken Grotesk", sans-serif;
  background: #3b818c;
  color: #232d3f;
  border: none;
  padding: 1rem;
  border-radius: 25px;
  margin-top: 1rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

button:hover {
  background: #295b63;
  transform: translateY(-1px);
}

.contact-form button.glass-effect {
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #232d3f;
}

.contact-form button.glass-effect:hover {
  background: rgba(255, 255, 255, 0.24);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2rem;
  width: 80%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 0;
  margin-bottom: 1.5rem;
}
.blue-mode {
  background: rgba(190, 207, 227, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 32px 0 rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 0;
  overflow: hidden;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  flex: 1 1 calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
  min-width: 260px;
  color: #cbcbcb;
  font-family: "Hanken Grotesk", sans-serif;
  overflow: hidden;
  border-radius: 25px;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 32px 0 rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow 0.3s;
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 25px 25px 0 0;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 10px 15px rgba(0, 0, 0, 0.18);
}

.gallery-label {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
}

body.gallery-page .gallery-label {
  color: #1f2b2d;
}

body.gallery-page .gallery-item {
  min-width: 300px;
  justify-content: flex-start;
}

/* Desktop-only clickable cursor on gallery items */
@media (min-width: 1024px) and (pointer: fine) {
  body.gallery-page .gallery-item {
    cursor: pointer;
  }

  body.gallery-page .gallery-item img {
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  body.gallery-page .gallery-item:hover img {
    transform: scale(1.02);
    box-shadow:
      0 0 28px rgba(255, 255, 255, 0.35),
      0 14px 30px rgba(0, 0, 0, 0.25);
  }
}

/* Lightbox – desktop only */
#lightbox {
  display: none;
}

@media (min-width: 1024px) and (pointer: fine) {
  #lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  #lightbox.is-open {
    visibility: visible;
    pointer-events: all;
    opacity: 1;
  }

  #lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 25, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #lightbox-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    max-width: 88vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
      0 8px 40px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: scale(0.96);
    transition: transform 0.3s ease;
  }

  #lightbox.is-open #lightbox-panel {
    transform: scale(1);
  }

  #lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    display: block;
  }

  #lightbox-caption {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.04em;
  }

  #lightbox-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  #lightbox-close {
    position: fixed;
    top: 0;
    right: 1rem;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  #lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
  }
}

body.gallery-page .gallery-item img {
  height: 380px;
  box-shadow: none;
}

body.about-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 80%;
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 1.5rem;
}

body.about-page > .gallery-grid {
  margin-top: 8rem;
}

body.about-page .gallery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: none;
  min-width: 0;
  padding: 0;
  color: #cbcbcb;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
  overflow: visible;
  margin-bottom: 1.5rem;
}

body.about-page .gallery-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 0;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 10px 15px rgba(0, 0, 0, 0.18);
  border-radius: 24px;
}

body.about-page .gallery-item p {
  font-size: 1.2rem;
  color: #cbcbcb;
  line-height: 1.7rem;
  margin: 0;
}

body.about-page .gallery-item li {
  margin: 0.4rem 0;
  font-size: 1.2rem;
}

body.about-page .about-text .pretty-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

body.about-page .about-text .pretty-list li {
  position: relative;
  margin: 0.7rem 0;
  padding-left: 1.35rem;
  line-height: 1.65;
}

body.about-page .about-text .pretty-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #286877;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(62, 85, 90, 0.14);
}

body.about-page .gallery-item a,
body.about-page .gallery-item a:visited {
  color: #1d5f6e;
  font-style: italic;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition:
    color 0.25s ease,
    background-size 0.25s ease,
    text-shadow 0.25s ease;
}

body.about-page .gallery-item a:hover {
  color: #134651;
  background-size: 100% 2px;
  text-shadow: 0 0 10px rgba(29, 95, 110, 0.15);
}

body.about-page .gallery-item a:focus-visible {
  outline: 2px solid rgba(19, 70, 81, 0.45);
  outline-offset: 2px;
  border-radius: 3px;
  background-size: 100% 2px;
}

body.about-page,
body.about-page h1,
body.about-page h2,
body.about-page h3,
body.about-page h4,
body.about-page h5,
body.about-page p,
body.about-page li,
body.about-page .gallery-item,
body.about-page .gallery-item p,
body.about-page .nav-links li a,
body.about-page .social-link {
  color: #1f2b2d;
}

body.home-page .home-hero {
  margin-top: 5rem;
  margin-bottom: 1rem;
}

.home-hero-logo {
  max-width: 250px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5rem;
}

body.home-page .hero-content h1 {
  color: #3e555a;
}

body.home-page .hero-content p {
  color: #222d2e;
}

.home-sections {
  padding-bottom: 1rem;
}

.home-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 80%;
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  align-items: center;
}

.home-section-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #1f2b2d;
}

.home-section-copy h2 {
  margin: 0 0 1rem;
  color: #1f2b2d;
}

.home-section-copy p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7rem;
  color: #1f2b2d;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding: 0.75rem 1.1rem;
  border-radius: 24px;
  text-decoration: none;
  color: #1f2b2d;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 24px rgba(31, 38, 135, 0.08);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.home-section-link:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateX(3px);
}

.home-section-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 10px 15px rgba(0, 0, 0, 0.18);
}

.home-section-shell {
  width: 80%;
  max-width: 1060px;
  margin: 0 auto;
}

.home-section-shell .home-section-grid {
  margin: 0;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .nav-links {
    width: 92%;
    box-sizing: border-box;
    padding: 0 0.75rem 0 8rem;
    justify-content: space-between;
  }

  .nav-links li a {
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    height: auto;
    min-height: 50px;
    padding: 0.25rem 0;
  }

  .nav-links {
    width: 100%;
    padding: 0.35rem 0.5rem;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .nav-links > a {
    position: static !important;
    display: flex;
    align-items: center;
    margin-right: 0.35rem;
  }

  .home-section-shell .home-section-grid {
    width: 100%;
    margin: 0;
  }

  .logo {
    width: 72px;
    height: 36px;
  }

  .nav-links li a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }

  .home-section-grid {
    grid-template-columns: 1fr;
    width: 80%;
    gap: 1.5rem;
    padding: 1rem;
  }

  .home-section-grid--reverse .home-section-media {
    order: 0;
  }

  .home-section-grid--reverse .home-section-copy {
    order: 1;
  }

  .home-section-shell .home-section-grid {
    padding: 0;
    gap: 0;
  }

  .home-section-shell .home-section-media img {
    border-radius: 0;
  }

  .home-section-shell .home-section-copy {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  body.about-page .gallery-grid {
    grid-template-columns: 1fr;
    width: 80%;
    padding: 1rem;
  }
}

.gallery-item p {
  font-size: 1.2rem;
  color: #cbcbcb;
  line-height: 1.7rem;
  margin: 0;
}

@media (max-width: 960px) {
  .gallery-item {
    flex-basis: calc(50% - 2rem);
    max-width: calc(50% - 2rem);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    width: 80%;
  }

  .gallery-item {
    flex-basis: 100%;
    max-width: 100%;
  }
}
.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  margin-top: 5rem;
  color: #fff;
  height: 40px;
  position: relative;
  font-size: 0.9rem;
}

.social-link {
  text-decoration: none;
  color: #cbcbcb;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  height: fit-content;
  border-radius: 25px;
}

.social-link:hover {
  background-color: #ffffff66;
  color: #fff;
}

.attribution {
  display: flex;
  justify-content: center;
  margin: 1rem auto 2rem;
  font-size: 0.8rem;
  position: relative;
}

.attribution a {
  color: inherit;
  text-decoration: none;
  padding: 0;
}

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

body.gallery-page .nav-links li a {
  color: #363c52;
}

body.gallery-page .nav-links li a:hover {
  color: #0f1418;
  background-color: #ffffff66;
}

body.gallery-page .nav-links li a.active {
  color: #0f1418;
  background-color: #ffffff66;
}

body.gallery-page .social-link {
  color: #363c52;
}

body.gallery-page .social-link:hover {
  color: #0f1418;
  background-color: #ffffff66;
}

@media (max-width: 640px) {
  .contact-form {
    width: 80%;
    padding: 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .socials {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
    padding-inline: 1rem;
    box-sizing: border-box;
    height: auto;
  }

  .social-link {
    justify-content: center;
  }
}
