.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width:1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:768px) {
    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.05);
}

/* video play icon */

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay i {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #000;
}

/* responsive */

@media (max-width: 1200px) {
  .gallery-grid {
    columns: 3;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}

.gallery-modal {
  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  z-index: 99999;

  align-items: center;

  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  position: relative;

  max-width: 90%;

  max-height: 90%;
}

#galleryViewer img,
#galleryViewer video {
  max-width: 90vw;

  max-height: 85vh;

  border-radius: 15px;
}

.gallery-close {
  position: absolute;

  top: -40px;

  right: 0;

  background: none;

  border: none;

  color: white;

  font-size: 40px;
}

.gallery-prev,
.gallery-next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  background: white;

  border: none;

  width: 50px;

  height: 50px;

  border-radius: 50%;
}

.gallery-prev {
  left: -70px;
}

.gallery-next {
  right: -70px;
}

.gallery-tabs{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:40px;
}

.gallery-tab{
    padding:12px 28px;
    border:none;
    border-radius:40px;
    cursor:pointer;
    background:#f3f3f3;
    transition:.3s;
}

.gallery-tab.active{
    background:#a31e22; /* your main brand color */
    color:#fff;
}