/* ========================================
   GLOBAL RESET & BASE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 200;
  color: #00499a;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: hidden;
  width: 100%;
}

/* ========================================
   TOP NAVIGATION
======================================== */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  z-index: 1000;
}

.top-nav .logo img {
  height: 20px;
  cursor: pointer;
}

.top-nav .menu-button {
  background: none;
  border: none;
  font-size: 1rem;
  color: #00499a;
  font-weight: 300;
  cursor: pointer;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(60px + 0.1vh);
  min-height: 90vh;
  text-align: center;
  background-color: #ffffff;
  width: 100%;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
  transform: translateZ(0);
}

.hero > *:not(.background-video) {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3vh;
  font-weight: 200;
  color: #00499a;
  line-height: 1.3;
  margin: 1.5% 0.5%;
  text-align: left;
  padding-bottom: 10vh;
}


.explore-img a {
  cursor: pointer;
}

.explore-img a img {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

.explore-img {
  margin-top: 12vh;
  margin-bottom: 5vh;
  z-index: 2;
}

.explore-img img {
  max-width: 90%;
  width: auto;
  opacity: 0.8;
  height: 20vh;
  animation: pulse 5s ease-in-out infinite;
  cursor: pointer;
}

/* ========================================
   SECTION BASE STYLES
======================================== */
.section {
  padding: 10vh 10% 60px;
  min-height: 80vh;
  text-align: center;
}

.section p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.story {
  background-color: #D6E0E2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
}

.content-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 200;
  text-align: center;
  margin-bottom: 40px;
  color: #00499a;
}

.story h2 {
  margin-top: min(10vh, 50px); /* dynamic, but at least 50px */
}

.section.gallery {
  min-height: 50vh; /* padding under the gallery */
}

.heading-link {
  text-decoration: none;
  color: inherit;
  font: inherit;
}

/* ========================================
   COLLECTION DRAWINGS
======================================== */
.collection .drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 250px);
  gap: 30px;
  place-items: center;
  justify-content: center;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hover-item {
  position: relative;
  width: 250px;
  height: 250px;
}

.hover-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.hover-item .real {
  opacity: 0;
}

.hover-item:hover .real {
  opacity: 1;
}

/* ========================================
   INLINE GALLERY WITH SEE MORE LINK
======================================== */
.gallery-top {
  max-width: 1600px;
  margin: 0 auto 20px;
  padding: 0 20px;
  position: relative;
}

.gallery-top h2 {
  text-align: center;
  margin-bottom: 0;
}

.gallery-top .see-more {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #00499a;
  text-decoration: none;
  font-weight: 300;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gallery-top .see-more:hover {
  opacity: 1;
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px auto 0;
  max-width: 1600px;
  padding: 0 20px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

/* ========================================
   MASONRY GALLERY FOR GALLERY PAGE
======================================== */

.video-embed {
  max-width: 960px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}


.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 200px;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  grid-auto-flow: dense;
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-mosaic img:hover {
  transform: scale(1.03);
}

/* Desktop – custom shapes */
.gallery-mosaic img.wide {
  grid-column: span 2;
}

.gallery-mosaic img.tall {
  grid-row: span 2;
}

.gallery-mosaic img.big {
  grid-column: span 2;
  grid-row: span 2;
}

/* Mobile – tweak spans for slight randomness */
@media (max-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    padding: 10px;
  }

  /* Reset most spans */
  .gallery-mosaic img {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Randomize a few (reuse existing classes or new ones like wide-phone) */
  .gallery-mosaic img:nth-of-type(2),
  .gallery-mosaic img:nth-of-type(6),
  .gallery-mosaic img:nth-of-type(10) {
    grid-column: span 2;
  }
}

/* ========================================
   CONTACT PAGE STYLES
======================================== */
.section.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 60px - 60px);
  padding: 40px 20px;
}

.section.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 5vh;
}

.section.contact p {
  font-size: 1rem;
  margin-bottom: 1vh;
  max-width: 600px;
}

.section.contact a {
  color: #00499a;
  text-decoration: none;
  font-weight: 300;
}

.section.contact a:hover {
  text-decoration: underline;
}

/* ========================================
   LIGHTBOX STYLES
======================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}

.lightbox .close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  padding: 10px 20px;
  z-index: 10;
  transition: 0.3s ease;
}

.arrow:hover {
  color: #ccc;
}

.arrow.prev {
  left: 40px;
}

.arrow.next {
  right: 40px;
}

/* ========================================
   MENU OVERLAY
======================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 73, 154, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.menu-overlay-links li {
  opacity: 0;
  transform: translateY(-20px);
  animation: dropFade 0.6s ease forwards;
  display: block;
  margin: 20px 0;
  position: relative;
}

.menu-overlay.active .menu-overlay-links li:nth-child(1) { animation-delay: 1.2s; }
.menu-overlay.active .menu-overlay-links li:nth-child(2) { animation-delay: 1.5s; }
.menu-overlay.active .menu-overlay-links li:nth-child(3) { animation-delay: 1.8s; }

@keyframes dropFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-overlay-links a {
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  font-weight: 300;
  position: relative;
  padding-bottom: 1.5em;
  display: inline-block;
}

.menu-overlay-links a::after {
  content: "";
  position: absolute;
  bottom: 0.8em;
  left: 50%;
  transform: translateX(-50%);
  width: 12em;
  height: 2.3em;
  background-image: url("assets/menuline.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.menu-overlay-links a:hover::after {
  opacity: 1;
}

/* ========================================
   FOOTER
======================================== */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f0f0f0;
  margin-top: auto;
}