@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
  --padding: 2rem;
  --maxWidth: 800px;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-image: url('./images/BG_Wood_Slats.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  color: black;
}

.main-nav .nav-list li.current-page {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  text-decoration: none;
}

a {
  color: #b16b4a;
}

.content {
  background-image:
    url('./images/BG_content_top.png'),
    url('./images/BG_content_bottom.png'),
    url('./images/BG_content_mid.png');
  background-position: 
    top center,
    bottom center,
    center center;
  background-repeat: 
    no-repeat,
    no-repeat,
    repeat-y;
  background-size: 
    100% auto,
    100% auto,
    100% auto;
  padding: var(--padding);
  max-width: var(--maxWidth);
  margin: 1rem auto;
  margin-top: 0;
  border-radius: 0px;
  line-height: 1.5;
}

.bannerMessage {
  font-family: Verdana;
  max-width: calc(var(--maxWidth) + 2*var(--padding));
  margin: 0 auto;
  text-align: center;
  /*padding: var(--padding);*/
  padding-bottom: 0;
  position: relative;
  color: #E0BF5C;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
}

#greeting {
  background-color:  rgba(241, 241, 241, 0.7);
  width: 100%;
  padding: 1rem 0;
}

.divider {
  width: 100%;
  max-width: 864px;
  text-align: center;
  margin: 0 auto;
}

.divider img {
  width: 18.75%;
  display: inline-block;
  height: auto;
  filter: drop-shadow(4px 4px 1px rgba(0,0,0,0.7));
}

/* Navigation Styles */
.main-nav {
  background-color: #f5f2e9;
  text-align: center;
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 2rem;
}

.main-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.main-nav .nav-list li a {
  color: #333;
  text-decoration: none;
  font-family: serif;
  padding: 10px;
  display: inline-flex;
}

.main-nav .nav-list li {
  border-left: 1px solid lightgrey;
  text-align:center;
  flex: 0 1 auto;
}

.main-nav .nav-list li:last-child {
  border-right: 1px solid lightgray;
}

.main-nav .nav-list li a:hover {
  color: #006699;
}

.main-nav .nav-list li.current-page a {
  font-weight: bold;
}

.hamburger {
  display: none; /* hidden on desktop */
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  cursor: pointer;
  background: rgba(0,0,0,0.6);
  padding: 10px;
  border-radius: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
}

.mobile-menu {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* hide desktop nav */
  }
  .hamburger {
    display: block;
  }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #f5f2e9;
    padding-top: 4rem;
    z-index: 1500;
  }
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-menu li {
    border-bottom: 1px solid #ccc;
  }
  .mobile-menu li.current-page {
    background-color: rgba(0, 0, 0, 0.3);
  }
  .mobile-menu a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
  }
  .mobile-menu a:hover {
    background-color: rgba(0,0,0,0.1);
  }
}
/******************************/

/* Button Stylings */
.nice-btn {
  background: linear-gradient(to bottom, #8C502A, #58280E);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  font-family: sans-serif;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s, transform 0.1s;
}

.nice-btn:hover {
  background: linear-gradient(to bottom, #58280E, #411d0b);
}

.nice-btn:active {
  background: linear-gradient(to top, #58280E, #411d0b);
  transform: scale(0.98);
}
/*********************************/

.oval-border {
  flex: 1 1 0;
  max-width: 33.33%;
  border: 1px solid #000000;
  border-radius: 25% / 25%;
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
  aspect-ratio: 4/3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.oval-border img {
  width: 100%;
  height: 100%;
  border-radius: 25% / 25%;
  object-fit: cover;
  display: block;
}

.popup-img {
  cursor: pointer;
}

/* Lightbox styling */
#imgModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#imgModal img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  border-radius: 8px;
}

#imgModal .closeBtn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  user-select: none;
}
/**********************************/

/* Photo Carousell styling */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  /* height will be set via JS to the tallest rendered slide */
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* visible slide */
.carousel-track img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* nav buttons hidden by default (opacity) and enabled on hover */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none; /* disabled until visible to avoid accidental clicks */
}

/* show buttons when hovering the carousel */
.carousel:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Carousel dots */
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* optional focus styles for keyboard users */
.carousel-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-dots {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  column-gap: 8px;                 /* fallback spacing */
  background-color: rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 4px 8px;
  z-index: 10;
}

.carousel-dots span {
  width: 12px;                     /* fallback size */
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}

.carousel-dots span.active {
  background: rgba(255,255,255,1);
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-slide .caption {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  /*font-size: 0.95rem;              /* fallback */
  padding: 2px 6px;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.carousel-slide.active .caption { opacity: 1; }

@supports (container-type: inline-size) {
  .carousel-dots {
    column-gap: 1.2cqi;            /* scales with .carousel width */
    padding: 0.4cqi 0.8cqi;
    border-radius: 1cqi;
  }
  .carousel-dots span {
    width: clamp(8px, 1.6cqi, 18px);
    height: clamp(8px, 1.6cqi, 18px);
  }
  .carousel-dots span.active {
    width: clamp(10px, 2.2cqi, 22px);
    height: clamp(10px, 2.2cqi, 22px);
  }
}
/****************************/

#paperclip {
  position: absolute;
  top: -1%;
  left: 1.5%;
  width: 40%;
  aspect-ratio: 1;
  z-index: 2;
  container-type: inline-size;
}

#paperclip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#paperclip div {
  top: 5%;
  left: 5%;
  width: 90%; /* relative to #paperclip */
  font-family: Verdana, sans-serif;
  font-size: clamp(6px, 4cqi, 14px);
  color: #86492D;
  text-align: left;
}

#paperclip div button {
  font-size: clamp(10px, 4cqi, 16px); /* button text scales */
  padding: clamp(4px, 5cqi, 20px) clamp(8px, 5cqi, 35px); /* button size scales */
}