:root {
  --indent: 50px;
  --canvas: 150px;
}

html,
body {
  font-family: "Source Serif 4", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

b,
strong {
  font-weight: 600;
}

main {
  width: 100%;
  /*min-height: 100%;*/
}

header {
  position: relative;
  width: 100%;
  height: var(--canvas);
  padding: var(--indent);
}

.logo {
  height: calc(var(--canvas) / 3);
  width: auto;
}

.menu {
  position: absolute;
  left: calc(var(--indent) + var(--indent) + 380px);
  top: var(--indent);
  height: calc(var(--indent) + 8px);
  display: flex;
  align-items: flex-end;
  font-size: 2rem;
}

.menu a {
  text-decoration: none;
  color: #000;
  padding-bottom: 8px;
  margin-right: calc(var(--indent) / 2);
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  border-bottom: 2px solid #000 !important;
}

.selected {
  border-bottom: 2px solid #000 !important;
}

.main-carousel {
  position: relative;
  left: 0;
  /*top: var(--canvas);*/
  width: 100%;
  height: calc(100dvh - var(--canvas) - var(--canvas));
}

.slides {
  width: 100%;
  height: 100%;
  padding-left: var(--indent);
}

.slide img {
  height: 100%;
  width: auto;
}

.slide-portrait img {
  height: 100%;
  width: auto;
}


.flickity-button {
  background: none;
  border: none;
  fill: currentColor;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.flickity-button-icon {
  display: none;
}

.flickity-button.previous {
  background: url('../img/arrow.svg') no-repeat center;
  background-size: contain;
  left: 15px;
}

.flickity-button.next {
  background: url('../img/arrow.svg') no-repeat center;
  background-size: contain;
  right: 15px;
  transform: rotate(180deg);
  margin-top: -10px;
  /* Rotate for the opposite direction */
}

/*
.flickity-page-dots {
  right: var(--indent);
  bottom: calc(0px - (var(--canvas) / 2));
  text-align: right;

}
.flickity-page-dots .dot {
  margin: 0;
  margin-left: 12px;
}
*/
.carousel-status {
  position: fixed;
  right: var(--indent);
  top: calc(100dvh - (var(--canvas) * 0.66));
  /*bottom: calc(var(--canvas) / 3);*/
  text-align: right;
  font-size: 1.6rem;
  color: #000000;
}

.carousel-info {
  position: fixed;
  left: var(--indent);
  top: calc(100dvh - (var(--canvas) * 0.66));
  /*bottom: calc(var(--canvas) / 3);*/
  text-align: left;
  font-size: 1.6rem;
  color: #000000;
}

.carousel-info strong {
  font-weight: 600;
}

.contact-image {
  position: relative;
  margin-left: var(--indent);
  /*margin-top: var(--canvas);*/
  /*width: 100%;*/
  height: 60dvh;
  /*calc(100dvh - var(--canvas) - var(--canvas));*/
}

.contact-image img {
  height: 100%;
  width: auto;
}

.contact-text {
  position: relative;
  padding: var(--indent);
  font-size: 1.6rem;
  line-height: 1.6em;
}

.contact-text p {
  margin-bottom: 1em;
}

.contact-text a {
  text-decoration: none;
  color: #000;
  padding-bottom: 2px;
  margin-right: calc(var(--indent) / 2);
  border-bottom: 2px solid #000;
}

.workMenu {
  display: none;
 
  /* Adjust timing as needed */
  position: absolute;
  right: 0;
  top: var(--canvas);
  bottom: 0;
  left: calc(var(--indent) + 380px);
  z-index: 99;
  background: rgba(255, 255, 255, 0.7);
  padding: var(--indent);
  font-size: 1.8rem;
  line-height: 2em;
}

.workMenu a {
  text-decoration: none;
  color: #000;
  padding-bottom: 2px;
  margin-right: calc(var(--indent) / 2);
  border-bottom: 2px solid transparent;
}

.workMenu a:hover {
  border-bottom: 2px solid #000;
}

.workMenu.active {
  display: block;
  /* Show the menu when active */
}
.video-container {
  position: relative;
  width:100%;
  padding-bottom: 56.25%; /* Default ratio: 16:9 */
  height: 0;
  overflow: hidden;
  max-width: calc(100vw - var(--indent) - var(--indent));/*100%;*/
  background: #FFF;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.instagram {
  width: 30px;
  height:auto;
  padding-top:20px;
}
.caption {
  padding-top: 6px;
  padding-bottom: var(--indent);
  font-size: 1.4rem;
  line-height: 1.6em;
}
@media (max-width: 768px) {
  header {
     text-align: center;
     height: calc(var(--canvas));/* + var(--indent));*/
  }

  .logo {
     height: auto;
     width: 70vw;
  }

  main {
     height: calc(100dvh - var(--canvas) - (var(--canvas) * 0.4));
  }

  .menu {
     position: relative;
     left: 0;
     top: 0;
     width: 100%;
     justify-content: center;
     display: flex;
  }

  .menu a {
     margin-left: calc(var(--indent) / 2);
  }
  /*
  .menu a:first-child {
     text-align:left;
  }
  .menu a:last-child {
    text-align:right;
  }
  .menu a:nth-child(2) {
    text-align:center;
  }
*/
  .main-carousel {
     /* Example: Adjust carousel styles for small screens */
     padding-left: calc(var(--indent) / 2);
     padding-right: calc(var(--indent) / 2);
  }

  .main-carousel {
     height: 100%;
  }

  .slides {
     padding-left: 0;
     text-align: center;
     display: flex;
     justify-content: center;
     /* Horizontal alignment */
     align-items: center;
     /* Vertical alignment */
     overflow:hidden;
     ·
  }

  .slide img {
     width: 100%;
     height: auto;
  }

  .slide-portrait img {
     height: 84%;
     width: auto;
  }
  .flickity-button {
    width: 14px;
    height: 14px;
  }
    .video-container {
        padding-bottom: 75%; /* Adjust for smaller screens if needed */
    }



  .flickity-button.previous {
    left: 3px;
  }
  .flickity-button.next {
    right: 3px;
  }

  .contact-image {
     margin: 0;
     /*padding-left: var(--indent);
     padding-right: var(--indent);*/
     width: 100%;
     height: auto;
  }

  .contact-image img {
     width: 100%;
     height: auto;
  }

  .workMenu {
     left: 0;
     font-size: 1.8rem;
     line-height: 2em;
     text-align: center;
  }
  .carousel-status {
    top: calc(100dvh - (var(--canvas) * 0.4));
  }
  
  .carousel-info {
    top: calc(100dvh - (var(--canvas) * 0.4));
  }
}
@media (max-width: 480px) {
  .video-container {
      padding-bottom: 100%; /* Adjust for square-like ratios on very small devices */
  }
}