.mod-gallery .title {
  padding-bottom:2rem;
}
.mod-gallery .btn-container {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content: center;
  padding:6rem 2rem 0;
}
.mod-gallery .grid .card {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content: center;
  transition: opacity .5s;
  overflow:hidden;
  aspect-ratio: 4/3;
  cursor:pointer;
}
.mod-gallery .grid .card .image {
  width:100%;
  height:100%;
}
.mod-gallery .grid .card .image .inner{
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
  transition: all .5s ease-in-out;
}
@media (min-width:991px) and (min-height:992px) {
  .mod-gallery .grid .card {
    cursor:pointer;
  }
  .mod-gallery .grid .card:hover .image .inner {
    transform:scale(1.08);
  }
  /*.mod-gallery .grid .card:hover {
    opacity:.7;
  }*/
}
.mod-gallery .swiper-slide {
  height: unset;
}
.mod-gallery .swiper-slide img {
  width:100%;
}
.mod-gallery .swiper-pagination {
  position: unset;
  padding: 3rem 0;
}
.mod-gallery .swiper-navigation {
  display:flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom:2rem;
}
.mod-gallery .swiper-navigation button {
  margin-bottom: .5rem; 
}


/* modal popup */
.mod-gallery .modal {
  display: none;
  align-items:center;
  justify-content:center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 5%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.mod-gallery .modal .modal-content {
  position:relative;
  background-color: #fff;
  /*margin: 10% auto;*/
  padding: 2rem;
  border-radius: 1rem;
  width: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.mod-gallery .modal .modal-content img {
  display:block;
  width:100%;
  margin:0 auto;
}
.mod-gallery .modal .close {
    color: var(--color-primary);
    display: flex;
    font-size: 3rem;
    font-weight: 700;
    position: absolute;
    right: -1rem;
    top: -1rem;
    width: 4.5rem;
    height: 4.5rem;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
}

.mod-gallery .modal .close:hover,
.mod-gallery .modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width:640px) {
  .mod-gallery .modal {
    display:none!important;
  }
/*.mod-gallery .modal .modal-content {
  position:relative;
  background-color: #fff;
  margin: auto;
  padding: 1rem;
  border-radius: .5rem;
  width: 95%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}*/