/** @format */

:root {
  --heading-font: "Montserrat", sans-serif;
  --second-font: "Crimson Text", serif;

  --mani-bg-color: #fff;
  --btn-bg-color: #af9453;
}

.play-btn {
  display: none;
}
body {
  background-color: #f5f5f5;
}

.gallery_hero_container {
  /* display: block; */
  /* height: 100vh; */
  height: 75vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.gallery_hero_container a {
  font-family: var(--second-font);
}

.gallery_hero_container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding: 20px;
}

.gallery-container img {
  width: 100%;
  height: auto;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  /* background: rgba(10, 10, 10, 0.95); */
  background: rgba(10, 10, 10);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: all 0.3s ease-in-out;
}

.lightbox.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.lightbox-img {
  width: auto;
  height: 90vh;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1002;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  padding: 10px 20px;
}

#prev {
  left: 2%;
}

#next {
  right: 2%;
}

.lightbox-counter {
  font-family: var(--second-font);
  position: absolute;
  bottom: 20px;
  right: 30px;
  color: white;
  font-size: 0.9rem;
  font-style: italic;
  z-index: 1001;
}

@media (max-width: 576px) {
  .gallery_hero_container {
    height: 75vh;
  }

  .lightbox {
    background: #000;
  }

  .lightbox-img {
    width: 100vw;
    height: auto;
  }
  .lightbox .close {
    top: 10vh;
    right: 5vw;
  }

  .gallery-container {
    gap: 10px;
    padding: 10px;
  }

  #prev,
  #next {
    opacity: 80%;
  }

  #prev {
    left: -5%;
  }

  #next {
    right: -5%;
  }
}

/* Invisible click zones for desktop image navigation */
#clickLeft,
#clickRight {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 1000;
}

#clickLeft {
  left: 0;
}

#clickRight {
  right: 0;
}
