:root {
    --container-padding: 1.5em;
    --container-width: 1260px;
  }
  
  * {
    &,
    &::before,
    &::after {
      box-sizing: border-box;
    }
  }
  
  body {
    margin: 0;
    font: 1em/160%;
  }
  
  img {
    max-width: 100%;
    vertical-align: middle;
    height: auto;
  }
  
  .page-container {
    padding: var(--container-padding);
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
  }
  
  /* Gallery layout */
  :root {
    --gallery-gap: 1.5em;
    --gallery-items-per-row: 1;
  }
  
  .img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gallery-gap);
  }
  
  /* 
   * Width of each item = Wi
   * Container width = Wc
   * Gap between items = g
   * Items per row in the gallery = n
   * Total space coverd by gaps = G
   * Available space for items per row = Wa
   *
   * G = g * (n - 1)
   * Wa = Wc - G
   * Wi = Wa / n
   */
  .img-gallery-item {
    flex: 0 0
      calc(
        (100% - (var(--gallery-gap) * (var(--gallery-items-per-row) - 1))) /
          var(--gallery-items-per-row)
      );
  
    img {
      border-radius: var(--gallery-item-border-radius);
      aspect-ratio: 3 / 2;
      object-fit: cover;
    }
  }
  
  @media only screen and (width >= 1024px) {
    .img-gallery {
      --gallery-items-per-row: 3;
    }
  }
  
  @media only screen and (768px < width < 1024px) {
    .img-gallery {
      --gallery-items-per-row: 3;
    }
  }
  
  @media only screen and (540px < width < 768px) {
    .img-gallery {
      --gallery-items-per-row: 2;
    }
  }
  
  /* Gallery styles */
  :root {
    --gallery-item-border-radius: 0.4em;
    --gallery-caption-bg-color: rgba(96, 150, 180, 0.9);
    --gallery-caption-text-color: whitesmoke;
    --gallery-caption-font-size: 2em;
  }
  
  .img-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--gallery-item-border-radius);
  
    figure {
      margin: 0;
    }
  
    figcaption {
      position: absolute;
      inset: 0;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 0;
  
      font-size: var(--gallery-caption-font-size);
      font-weight: 700;
  
      color: var(--gallery-caption-text-color);
      background-color: var(--gallery-caption-bg-color);
  
      transition: opacity 0.25s ease-in-out, scale 0.15s ease-in-out;
      scale: 0;
      opacity: 0;
    }
  
    &:hover {
      figcaption {
        scale: 1;
        opacity: 1;
      }
    }
  }

  html {
    box-sizing: border-box;
  }
  
  *, *:before, *:after {
    box-sizing: inherit;
  }
  
  body {
    margin: 0;
  }

  .gallery-back-button-cont {
    width: 100%;
  }
  
.gallery-back-button {
    text-decoration: none;
    font-size: larger;
    margin-left: 20px;
    color: whitesmoke;
    font-weight: 700;
    font-size: 20px;
    opacity: 0.7;
    transition: ease-in-out 300ms;
    background-color: var(--kek);
    padding: 4px;
    border-radius: 8px;
}

.gallery-back-button:hover {
    color: whitesmoke;
    opacity: 1;
}

  /* Gallery layout */
  .img-gallery {
    display: flex;
    flex-wrap: wrap;
  }
  
  .img-gallery-item {
    width: 25%;
    padding: 5px;
  }
  
  img.preview {
    width: 100%;
    cursor: pointer;
  }
  
  /* Lightbox styling */
/* Styling for images in the gallery */
img.hover-shadow {
    transition: 0.3s;
    width: 100%; /* Make sure images are responsive within the container */
  }
  
  .hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  
  /* The Modal (background) */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    padding: 10px;
    width: 100%;
    height: 100vh;
    overflow: none;
    background-color: rgba(0, 0, 0, 0.9); /* Slightly transparent background */
    justify-content: center;
    align-items: center;
  }
  
  /* Modal Content 
  .modal-content {
    position: relative;
    background-color: black;
    margin: auto;
    padding: 0;
    width: auto;
    max-width: 1200px;
  }
    
*/

  .modal-content img {
    max-height: 90vh;
    object-fit: scale-down;
    width: auto;
    margin-top: 4vh;
  }
  
  /* The Close Button */
  .close {
    color: white;
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #999;
    text-decoration: none;
  }
  
  /* Slides */
  .mySlides {
    display: none;
    justify-content: center;
    align-items: center;
  }
  
  /* Navigation Buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  .prev {
    left: 0;
    border-radius: 3px 0 0 3px;
  }
  
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 20px;
    padding: 12px;
    position: absolute;
    top: 0;
  }

  .img-gallery-item video.hover-shadow {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.mySlides video {
    width: 100%;
    height: auto;
}

.lightboxOptionalText {
  text-align: center;
  margin: 10px;
  margin-top: 30px;
}