/* ------------------------------------
   PAGE BASICS
------------------------------------ */
body {
    margin: 0;
    font-family: Judson, Times New Roman;
}

.page-title {
    text-align: center;
    margin-top: 20px;
}

/* ------------------------------------
   IMAGE GRID
------------------------------------ */
.image-grid {
/*     margin: 20px auto;*/
/*    max-width: 1200px;*/
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
/*    gap: 15px;*/
}

.image-grid img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s;
}

.image-grid img:hover {
    transform: scale(1.03);
}

/* ------------------------------------
   OVERLAY
------------------------------------ */
.overlay {
    position: fixed;
    inset: 0;
/*    background: rgba(0,0,0,0.92); 
    background: #4c5355e0;*/
    background: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.hidden {
    display: none;
}

.overlay-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    left: 25px;
    font-size: 48px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 8px black;
}

/* ------------------------------------
   SLIDES
------------------------------------ */

@media screen and (max-width: 767px) {
  .slides {
      flex: 1;
      height: 80%;
      position: relative;
      overflow: hidden;
    background: grey;
  }
}

@media screen and (min-width: 768px) {
.slides {
    flex: 1;
    height: 87%;
    position: relative;
    overflow: hidden;
}
}

@media screen and (max-width: 767px) {
.slide {
    position: absolute;
    inset: 0;
    background: grey;
    background-size: auto 40%;
    background-position: 50% 15%;
    background-repeat: no-repeat;
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
}
.slide.r2 {
    background-size: 60%; 
}

}
@media screen and (min-width: 768px) {
.slide {
    position: absolute;
    inset: 0;
    background-size: auto; 
    background-position: center 25%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 3vw; 
    box-sizing: border-box;
}
.slide.r05 {
    background-size: auto 70%; 
}
.slide.r07 {
    background-size: 35%; 
}
.slide.r12 {
    background-size: 60%; 
}
.slide.r13 {
    background-size: 50%; 
}

}
.slide.active {
    opacity: 1;
}

@media screen and (max-width: 767px) {
  /* Text overlay */
  .slide-content {
  /*    background: rgba(0,0,0,0.80);*/
  /*    background: #4c535500;*/
      
      position: absolute;
      /* background-size: fit; */
      background-size: auto 400px;
      top:57%;
      justify-content: top center;
      color: white;
      text-align: center;
  }

  .slide-content button {
      margin-top: 2px;
      padding: 10px 20px;
      background: #4c535500;
      color: white;
      font-weight:bold;
      border: 3px solid white;
      cursor: pointer;
      border-radius: 50px;
  }
}

@media screen and (min-width: 768px) {
/* Text overlay */
.slide-content {
/*    background: rgba(0,0,0,0.80);*/
    background: #4c535500;
    position: absolute;
    left: 0%;
    bottom: 2%;
    color: white;
    padding: 1rem 1.6rem;
    border-radius: 4px;
    max-width: 320px;
    text-align: center;
    z-index:2;
}

.slide-content button {
    margin-top: 2px;
    padding: 10px 20px;
    background: #4c535500;
    color: white;
    font-weight:bold;
    border: 3px solid white;
    cursor: pointer;
    border-radius: 50px;
}
}
/* ------------------------------------
   THUMBNAILS
------------------------------------ */
@media screen and (max-width: 767px) {
  .thumbnails {
      position: absolute;
      top: 87%;
      bottom: 1%;
      background: grey;
      background-attachment: scroll;
      width: 100%;
      height: 100%;
      padding: 2px;
      display: flex;
      flex-direction: row;
      overflow-y: hidden;
      overflow-x: scroll;
      white-space: nowrap; 
  }
  .thumb {
      width: 18%;
      height: 8.5%;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
      background-attachment: scroll;
      margin-bottom: 8px;
      border: 2px solid transparent;
      border-radius: 4px;
      cursor: pointer;
      overflow-y: hidden;
      overflow-x: scroll;
   /*   z-index:1;*/
      flex-shrink: 0;                 /* don't shrink */
  }
}
@media screen and (min-width: 768px) {
  .thumbnails {
      width: 140px;
      background: rgba(255,255,255,0.1);
      height: 100%;
      flex-direction: column;
      overflow-y: auto;
      /*overflow-y: hidden;
      overflow-x: scroll;*/
      padding: 10px;
  }
  .thumb {
      width: 100%;
      height: 80px;
      background-size: cover;
      background-position: center;
      margin-bottom: 8px;
      border: 2px solid transparent;
      border-radius: 4px;
      cursor: pointer;
      flex-direction: column;
      overflow-y: auto;
  }
}

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

/* ------------------------------------
   ARROWS
------------------------------------ */
.nav-arrow {
  filter: drop-shadow(0 0 8px black);
}
@media screen and (min-width: 768px) {
  .nav-arrow {
      position: absolute;
      left: 45%;
      color: white;
      width: 44px;
      height: 44px;
      display: flex;
      user-select: none;
      cursor: pointer;
      transform: translateX(-50%);
      text-shadow: 0 0 8px black;
  }

  .nav-prev {
      top: 14px;
  }

  .nav-prev svg {
      transform: rotate(90deg); /* ← */
  }

  .nav-next {
      bottom: 8px;
  }

  .nav-next svg {
      transform: rotate(-90deg);  /* ↓ */
  }
}
@media screen and (max-width: 767px) {
  .nav-arrow {
      position: absolute;
      top: 30%;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      text-shadow: 0 0 8px black;
  }

  .nav-prev {
      left: 2%;
  }

  .nav-prev svg {
      transform: rotate(0deg); /* ← */
  }

  .nav-next {
      right: 2%;
  }

  .nav-next svg {
      transform: rotate(180deg);   /* → */
  }
}



/* ------------------------------------
   CONTACT PAGE
------------------------------------ */
.contact-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.preview img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

