/* -------------------------------------------------
   BASE
------------------------------------------------- */
body {
  margin: 0;
  background: #ffffff;
  font-family: "Helvetica Neue", sans-serif;
  color: #000;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

body.index{
	background:url('../img/splash.jpg') no-repeat center center fixed; 	
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------
   HEADER
------------------------------------------------- */
.site-header {
  top: 0;
  z-index: 1000;
  background: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.logo {
  font-family: "Sorts Mill Goudy", serif;
  font-size: 1.4rem;
  text-decoration: none;
  color: black;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: capitalize;
}

.site-nav a.active {
  font-weight: bold;
}

/* -------------------------------------------------
   MOBILE NAV
------------------------------------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: black;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .site-nav {
    position: fixed;
    top: -120%;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px 30px 40px;
    gap: 20px;
    transition: top 0.3s ease;
    text-align: right;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 5;
  }

  .site-nav.open {
    top: 60px;
  }

  .site-nav a {
    font-size: 1.15rem;
    letter-spacing: 1.2px;
  }

  .menu-toggle {
    display: flex;
    z-index: 15;
    position: relative;
  }
}

/* -------------------------------------------------
   DESKTOP GALLERY (≥ 900px)
------------------------------------------------- */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative; 
}

.featured-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

#featuredImage {
  max-width: 100%;
  max-height: calc(100vh - 120px - 120px); 
  object-fit: contain;
  cursor: zoom-in;
}

.featured-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100%;
}


.featured-caption {
   flex: 0 0 auto;
   text-align:center;
   padding-top:10px;
   display:block;
   font-size:.85rem;
 }

.gallery-prev,
.gallery-next {
  position: absolute;
  font-family: "Lato", sans-serif;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: black;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.thumb-row {
  overflow-x: auto;
  max-height: 10vh;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.thumb-row::-webkit-scrollbar {
  display: none;
}

.thumb-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0 auto;
}

.thumb-inner.centered {
  margin-left: auto;
  margin-right: auto;
}

.thumb {
  flex: 0 0 auto;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb img {
  height: 60px;
  object-fit: cover;
}

.thumb.active {
  border-color: black;
}

.mobile-vertical-gallery {
  display: none;
}
/* -------------------------------------------------
   MOBILE VERTICAL GALLERY (< 900px)
------------------------------------------------- */


/* Keep horizontal gallery fully visible on desktop without cropping */
@media (min-width: 900px) and (min-height: 600px) {

    body.gallery-page {
      height: 100%;
      overflow: hidden;
    }

  .gallery {
    height: calc(100vh - 120px); /* header + padding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ft {
    height: 80vh !important;
  }

  .featured-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  #featuredImage {
    max-width: 100%;
    max-height: calc(100vh - 120px - 140px); 
    object-fit: contain;
    cursor: zoom-in;
  }
  
  .ft #featuredImage {
    max-width: 100%;
    max-height: 70vh; 
    object-fit: contain;
    cursor: zoom-in;
  }

  .featured-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100%;
  }

  .thumb-row {
    flex: 0 0 auto;
    max-height: 100px;
    padding: 10px 0;
  }
}



@media (max-width: 900px) {

  /* Hide desktop gallery */
  .gallery {
    display: none;
  }

  .featured-caption {
     display: none;
   }
  /* Show vertical gallery */
  .mobile-vertical-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 20px;
  }

  .mobile-vertical-gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
  }

  .mobile-vertical-gallery .caption {
    font-size: .85rem;
    text-align: center;
    margin-top: 10px;
	font-weight: 200;
  }
}

/* -------------------------------------------------
   LIGHTBOX
------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,1);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 5000;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform .15s ease-out;
  touch-action: none;
}

.lightbox-caption {
  color: black;
  font-family: "Helvetica Neue", serif;
  font-size: 1.0rem;
  line-height: 1.5;
  max-width: 260px;
  text-align: left;
  display: none !important;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: black;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  font-family: "Lato", sans-serif;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: black;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* MOBILE LIGHTBOX */
@media (max-width: 600px) {
  .lightbox-content {
    flex-direction: column;
    gap: 20px;
  }

  .lightbox-image {
    max-width: 90vw;
    max-height: 70vh;
  }

  .lightbox-caption {
    font-size: 0.95rem;
    text-align: center;
    max-width: 90vw;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none !important;
  }

  .lightbox-close {
    top: 12px;
    right: 18px;
    font-size: 32px;
  }
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
.footer {
  position: absolute;
  right: 24px;          /* distance from right edge of the window */
  /* Align vertically with the thumbnail row */
  bottom: 20px; 
  /* 40px top padding + featured area (approx) + gap before thumbs */
  width: auto;
  height: auto;
  float: none;
}

.footer img {
  display: block;
}

@media (max-width: 1200px) {
	.footer {
	  display:none;
  }
}