.gallery-item {
    margin: 40px 0px;
}

.gallery-item-list {
    position: relative;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.4s ease 0s;
}

.gallery-item-head h3 {
    color: rgb(0, 67, 130);
    font-weight: 700;
    font-family: Arial;
    font-size: 32px;
    padding-bottom: 10px;
    line-height: 150%;
    
}

/* .gallery-item-list:hover .image-overlay h4 {
  color: var(--orange-color);
} */

.gallery-item-list .gallery-item-img {
    width: 100%;
    position: relative;
}

.gallery-item-list .gallery-item-img img {
    width: 100%;
}

.image-overlay {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.5s ease 0s;
}

.image-overlay h4 {
    margin: 0px;
    color: var(--white-color);
    font-size: 16px;
    line-height: 140%;
}

.gallery-more-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.gallery-more-btn button {
    background-color: var(--orange-color);
    font-size: 20px;
    font-weight: 700;
    color: var(--white-color);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
}
.gallery-more-btn a{
    background-color: var(--orange-color);
    font-size: 20px;
    font-weight: 700;
    color: var(--white-color);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
}

/* .gallery-video video {
  width: 80%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0px auto;
} */

.modal {
    display: none;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 100px 0px;
    z-index: 9999 !important;
}

/* .modal-content {
    margin: auto;
    display: block;
    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    height: 80%;
} */

.modal .close {
    position: absolute;
    top: 100px;
    right: 35px;
    color: rgb(0, 0, 0);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgb(255, 255, 255);
    width: 40px;
    height: 40px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}
.gallery-item .modal {
  display: none;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 100px 0px;
  z-index: 9999 !important;
}

.gallery-item .modal-content {
  margin: auto;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  /* height: 70%; */
}

.gallery-item  .modal .close {
  position: absolute;
  top: 50px;
  right: 45px;
  color: rgb(0, 0, 0);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: rgb(255, 255, 255);
  width: 40px;
  height: 40px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
}
.gallery-items  .modal .close {
  position: absolute;
  top: 100px;
  right: 45px;
  color: rgb(0, 0, 0);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: rgb(255, 255, 255);
  width: 40px;
  height: 40px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
}

.close:hover,
.close:focus {
    color: rgb(187, 187, 187);
    text-decoration: none;
    cursor: pointer;
}
.video-container {
    margin-top: 20px;
}
.video-container .video iframe {
    width: 100%;
}

.video video {
    width: 100%;
    height: auto;
}

.popup-video {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 100px 0;
    z-index: 9999 !important;
}

.popup-video video {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    max-width: 60%;
    height: 70%;
    /* max-width: 800px; */
}

.popup-video span {
    position: absolute;
    top: 50px;
    right: 45px;
    color: rgb(255, 255, 255);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999 !important;
}

/* Mute button style */
.mute-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: white;
}

/* Mute button style */
.mute-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: white;
}
.gallery-image-wrapper {
    width: 100%; /* or a fixed width in px */
    height: 280px; /* or any height you prefer */
    overflow: hidden; /* hides the overflow part of the image */
}
.gallery-image-wrapper-home {
    width: 100%; /* or a fixed width in px */
    height: 150px; /* or any height you prefer */
    overflow: hidden; /* hides the overflow part of the image */
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures the image covers the area without distortion */
}
@media screen and (max-width: 1400px) {
}

@media screen and (max-width: 992px) {
    .gallery-more-btn button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-item-head h3 {
        font-size: 28px;
    }
    .image-overlay {
        padding: 12px;
    }

    .image-overlay h4 {
        font-size: 14px;
        line-height: 140%;
    }

    .gallery-item-list iframe {
        height: 100%;
    }
    /* .modal-content {
        margin: auto;
        display: block;
        position: absolute;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        height: 50%;
    } */
    .gallery-item .modal-content {
    margin: auto;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    /* height: 60%; */
}
    .modal .close {
        padding-bottom: 10px;
    }

    .popup-video video {
        width: 90%;
    }
}

@media screen and (max-width: 500px) {
    .image-overlay {
        padding: 10px;
    }
    .modal .close {
        right: 20px;
    }
    .modal-content {
        margin: auto;
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        /* height: 40%; */
    }
    .gallery-item .modal-content {
  margin: auto;
  display: block;
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  /* height: 60%; */
}
}
