:root {
  --gallery_primary-heading-text-color: #2b2b2b;
  --gallery_text-color: #3a2f24;
  --gallery_button-text-color: #1f3a32;
  --gallery_golden-border-color-1: #b67e04;
  --gallery_golden-border-color-2: #e0b860;
  --gallery_bg-paper-texture1: url("../assets/backgroundImage/body_bg_1.avif");
  --gallery_bg-button: url("../assets/backgroundImage/buttonBackground.avif");
  --gallery_font-home-heading: "Pirata One", serif;
  --gallery_font-heading: "Cinzel", serif;
  --gallery_font-text: "Inter", sans-serif;
}

body {
  background: var(--gallery_bg-paper-texture1) no-repeat top/cover;
}
/* Calander Page Styles  */
.gallery_page {
  position: relative;
}

/* Top Icons  */
.gallery_page .top_left_icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: auto;
}
.gallery_page .top_center_icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: auto;
}
.gallery_page .top_right_icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: auto;
}

/* Responsive icon sizes*/
@media (max-width: 768px) {
  .gallery_page .top_left_icon {
    width: 80px;
    height: auto;
  }
  .gallery_page .top_center_icon {
    width: 200px;
    height: auto;
    top: -20px;
  }
  .gallery_page .top_right_icon {
    width: 80px;
    height: auto;
  }
}

/* Titles */
.gallery_page_title {
  padding-top: 40px;
  font-family: var(--gallery_font-heading);
  font-size: 42px;
  text-align: center;
  margin-bottom: 20px;
}

/* divider  */
.divider {
  width: 100%;
  margin: 0px 0px 1px 0px;
  padding-bottom: 2px;
  border: 4px ridge var(--gallery_golden-border-color-1);
  box-shadow: 5px 5px 10px var(--gallery_primary-heading-text-color);
}

/* Gallery page first section  */
.gallery_first_sec {
  height: 150px;
  background: url("../assets/gallery-page/documents-hero-img.avif");
  background-position-y: -450px;
  background-size: cover;
}
.gallery_background_overly {
  background-color: #724e004e;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}
.gallery_page_text {
  font-family: var(--gallery_font-text);
  font-size: large;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 10px white;
}


/* Grid */
.photo_gallery_div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 50px 20px;
}

/* Tablet */
@media (max-width: 992px) {
  .photo_gallery_div {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .photo_gallery_div {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Gallery Image */
.gallery_img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 4px ridge var(--gallery_golden-border-color-1);
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery_img:hover {
  transform: scale(1.01);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  /* visibility delay added */
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

/* Show Lightbox */
.lightbox.show {
  opacity: 1;
  visibility: visible;

  /* remove delay when showing */
  transition: opacity 0.3s ease;
}

/* Hide Animation */
.lightbox.hide {
  opacity: 0;
  visibility: hidden;

  /* delay visibility so fade-out works */
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

/* Lightbox Image */
.lightbox_img {
  max-width: 90%;
  max-height: 85%;
  border: 4px ridge var(--gallery_golden-border-color-1);
  border-radius: 5px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox_img.fade-out {
  opacity: 0;
}

/* Buttons */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: var(--gallery_golden-border-color-2);
  cursor: pointer;
  user-select: none;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--gallery_golden-border-color-2);
  cursor: pointer;
  user-select: none;
}

.prev {
  left: 30px;
}
.next {
  right: 30px;
}

.prev:hover,
.next:hover,
.close:hover {
  color: #ddd;
}
