/* =====================
   BASE STYLES
   ===================== */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffffed;
  width: 100vw;
  min-height: 100vh;
  color: #7f3f24;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* =====================
   LAYOUT
   ===================== */
.page {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  padding: 20px 25vw 5vh;
  box-sizing: border-box;
  background: none !important;
  z-index: 1;
}

.page p {
  margin: 0 0 2.5em 0;
  padding: 0;
  line-height: 1.5;
  text-align: left;
}
.page a{ color: #ff0066e6; text-decoration: none; border-bottom: 1px solid transparent; } .page a:hover { border-bottom-color: #7f3f24; cursor: pointer; } /* Spacing */
.spacing-10vh {
  display: block;
}

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: fixed;
  top: 5em;
  right: 5em;
  font-size: 1em;
  line-height: 1.5;
  text-align: right;
  color: #7f3f24;
  z-index: 100;
}

.nav a {
  color: #7f3f24;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-bottom-color: #7f3f24;
  cursor: pointer;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  color: #7f3f24;
  font-size: 1em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: #7f3f24;
  color: #fff;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 180px;
  z-index: 5;
  border-top: none;
  margin-top: -2px;
  padding: 0;
  transition: position 0.2s, margin-bottom 0.2s;
}

.dropdown-content a {
  color: #7f3f24;
  text-decoration: none !important;
  display: block;
  font-size: 1em;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  pointer-events: auto;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  color: #7f3f24;
  text-decoration: none !important;
}

.dropdown-content .italic {
  font-style: italic;
}

.dropdown-content.show {
  display: block;
  position: static;
  margin-bottom: 1em;
}

.dropdown.open {
  margin-bottom: 1em;
}

/* =====================
   CAROUSELS
   ===================== */
.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

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

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.arrow {
  background: transparent;
  color: rgb(155, 75, 33);
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* Carousel modifiers */
.carousel.narrow {
  width: 70%;
}

.carousel.offset {
  left: 15%;
}

.carousel.vertical {
  height: 100vh;
  grid-column: 1;
  grid-row: 1;
}

.carousel.vertical .carousel-track {
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

.carousel.vertical .carousel-slide {
  width: 100%;
  height: 100vh;
  flex: 0 0 100vh;
  align-items: flex-start;
}

.carousel-slide.tall-limit img {
  max-height: 70vh;
  width: auto;
  margin: 0 auto;
}

/* =====================
   VIDEO CAROUSEL
   ===================== */
.carousel-video {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
  display: block;
}

.carousel-track-video {
  display: flex;
  flex-direction: row;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.carousel-slide-video {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.tile-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.tile-video video {
  width: 100%;
  height: auto;
  max-height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

.carousel-controls-video {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.arrow-video {
  background: transparent;
  color: rgb(155, 75, 33);
  border: none;
  cursor: pointer;
  font-size: 18px;
  pointer-events: auto;
}

/* Video controls */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  z-index: 100;
}

.play-pause-btn {
  background: none;
  border: none;
  color: #7f3f24;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.video-timeline {
  width: 200px;
  height: 5px;
  background: rgba(127, 63, 36, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-progress {
  height: 100%;
  background: #7f3f24;
  width: 0%;
  transition: width 0.1s linear;
}

/* =====================
   GRIDS
   ===================== */
.grid {
  width: 100%;
  height: auto;
  display: grid;
  margin: 0 auto;
  gap: 0;
}

.grid-row {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
}

.grid-tile {
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.grid-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.grid-tile.empty {
  background: transparent;
  pointer-events: none;
}

/* Two-column grid */
.grid.two-column {
  grid-template-rows: 1fr;
}

.grid.two-column .grid-row {
  grid-template-columns: repeat(2, 1fr);
}

.grid.two-column .grid-tile {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid.two-column .grid-tile img {
  width: auto;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Split-view grid */
.grid.split-view {
  min-height: auto;
  grid-template-columns: 1fr 1.6fr;
  align-items: stretch;
  margin-left: 0;
  margin-right: auto;
}

.grid.split-view .grid-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  height: 100%;
}

.grid.split-view .grid-row {
  grid-auto-rows: min-content;
  height: auto;
}

.grid.split-view .grid-row.cols-1 {
  grid-template-columns: 1fr;
}

.grid.split-view .grid-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.split-view .grid-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.split-view .grid-tile {
  position: relative;
  background: #f9f9f9;
  height: auto;
}

.grid.split-view .grid-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.grid.split-view .grid-right .grid-tile {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid.split-view .grid-right .grid-tile img {
  width: 100%;
  height: 100%;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1000px) {
  /* Layout */
  .page {
    width: 100vw;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 0.1em;
  }
  
  .page p {
    margin-left: 0;
    text-align: left;
    padding-left: 0.5em;
  }
  
  .spacing-10vh {
    display: none;
  }
  
  /* Navigation */
  .nav {
    text-align: right;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 2em;
  }
  
  .dropdown-content {
    min-width: 140px;
  }
  
  .dropdown-content a {
    font-size: 2em;
    background-color: #fff;
  }
  
  /* Carousels */
  .carousel {
    width: 100vw;
    left: 0;
  }
  
  .carousel.narrow {
    width: 100vw;
  }
  
  .carousel.offset {
    left: 0;
  }
  
  .carousel.vertical {
    width: 100vw;
  }
  
  /* Video carousel */
  .carousel-video {
    width: 100vw;
  }
  
  .tile-video video {
    max-height: auto;
  }
  
  .custom-video-controls {
    bottom: 5px;
    padding: 6px 12px;
  }
  
  .video-timeline {
    width: 150px;
  }
  
  /* Grids */
  .grid.two-column {
    width: 100vw;
  }
}
