/* Custom Gallery + Form
--------------------------------------------- */
.swiper.gallery_thumbnail {
    width: 100%;
}
.swiper.gallery_thumbnail .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 90%;
    grid-gap: 30px;
    grid-row-gap: 10px;
    transform: translate3d(0px, 0px, 0px) !important;
}
.custom-gallery-form {
    display: flex;
    text-align: left;
    align-items: flex-start;
}
.swiper.gallery_slider {
    max-width: 700px;
    width: 90%;
}
.custom-gallery {
    width: 50%;
    padding: 5%;
    text-align: center;
}
.custom-form {
    width: 50%;
    padding: 50px 10% 50px 5%;
}
.gallery-thumb img {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
}
.swiper-slide-thumb-active img {
    border-color: #f3ad28;
}

.slider-gallery-nav {
    display: flex;
    position: absolute;
    top: 50%;
    justify-content: space-between;
    width: 100%;
}
.swiper-gallery-prev, .swiper-gallerymodal-prev {
    bottom: 0;
    display: block;
    z-index: 99999;
    background: url(/wp-content/uploads/2024/04/right-arrow.png);
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transform: rotate(180deg);
    background-position: center;
}
.swiper-gallery-next, .swiper-gallerymodal-next {
    bottom: 0;
    display: block;
    z-index: 99999;
    background: url(/wp-content/uploads/2024/04/right-arrow.png);
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transform: rotate(0deg);
    background-position: center;
}

/* Gallery Modal
--------------------------------------------- */

.gallery_modal .custom-gallery {
    width: 100%;
    display: flex;
    align-items: flex-start;
}
.swiper.gallery_slider_modal {
    width: 65%;
}
.swiper.gallery_thumbnail_modal {
    width: 35%;
    padding-left: 20px;
}
.swiper.gallery_thumbnail_modal .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 95%;
    grid-gap: 30px;
    grid-row-gap: 10px;
    transform: translate3d(0px, 0px, 0px) !important;
}
.gallery_modal h2 {
    text-align: left;
}

/* Modal
--------------------------------------------- */

/* The Modal (background) */
.modalgallery {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modalgallery-content {
    background-color: #FFF;
    margin: auto;
    padding: 0;
    border: 0;
    width: 90%;
    max-width: 1200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* The Close Button */
.closegallery {
    color: #000;
    font-size: 28px;
    line-height: 0.7;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

.closegallery:hover,
.closegallery:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
.modalgallery-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}
}


/* Form
--------------------------------------------- */

.custom-form-cont {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}
.custom-form-cont h2 {
    font-size: 28px;
    color: #f3ad28;
}
.container-fluid.no-pad.custom-quote-content {
    padding: 0 5% 5% 5%;
}

/* Responsive
--------------------------------------------- */

@media screen and (max-width: 1500px) {
.swiper.gallery_thumbnail .swiper-wrapper {
    grid-template-columns: repeat(6, 1fr);
}
}

@media screen and (max-width: 1239px) {
.swiper.gallery_thumbnail .swiper-wrapper {
    grid-template-columns: repeat(4, 1fr);
}
}

@media screen and (max-width: 991px) {
.swiper.gallery_thumbnail_modal .swiper-wrapper {
    grid-template-columns: repeat(3, 1fr);
}
}

@media screen and (max-width: 767px) {
.swiper.gallery_thumbnail .swiper-wrapper {
    grid-template-columns: repeat(6, 1fr);
}
.custom-gallery-form {
    flex-wrap: wrap;
}
.custom-gallery, .custom-form {
    width: 100%;
}

.gallery_modal .custom-gallery {
    flex-wrap: wrap;
}
.swiper.gallery_slider_modal {
    width: 100%;
}
.swiper.gallery_thumbnail_modal {
    width: 100%;
    padding-left: 20px;
}
.swiper.gallery_thumbnail_modal .swiper-wrapper {
    grid-template-columns: repeat(6, 1fr);
}
}

@media screen and (max-width: 600px) {
.swiper.gallery_thumbnail .swiper-wrapper {
    grid-template-columns: repeat(4, 1fr);
}
.swiper.gallery_thumbnail_modal .swiper-wrapper {
    grid-template-columns: repeat(4, 1fr);
}
}
