.gallery_sec {
    padding: 80px 30px;
    width: 100%;
}
/* Masonry Gallery */
.masonry-gallery {
  width: 100%;
  margin: 0 auto;
  display: grid;
   columns: 5;
  grid-auto-rows: 10px; /* base row height for masonry */
  gap: 25px;
}


/* Masonry Item */
.masonry-item {
  break-inside: avoid;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  border-radius: 26px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: all 0.5s ease-out 0s;
  transform: scale(1);
}

/* Hide animation */
.masonry-item.hide {
  transform: scale(0.8);
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
  z-index: -9999;
}

/* Images */
.masonry-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.masonry-item img::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  top: 0;
  left: 0;
}

.masonry-item.video::before,
.masonry-item.video::after {
  display: none;
}

/* Hover Effects */
.masonry-item:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.masonry-item.video:hover img {
  transform: scale(1);
  opacity: 0.8;
}

/* Gallery Details Overlay */
.gallery-details {
  display: flex;
  position: absolute;
  top: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 100%;
  height: 84%;
  padding: 30px;
  box-sizing: border-box;
  opacity: 1;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  transition: all 0.5s ease-out 0s;
  text-align: center;
}

.gallery-details h4 {
  font-size: 26px;
  color: #fff;
}

.gallery-details p,
.gallery-details ul li {
  color: #fff;
}

.gallery-details ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 0;
  font-size: 14px;
}

.gallery-details ul li {
  width: 50%;
}

.gallery-details ul li i {
  color: #eb2327;
  margin-right: 10px;
}

/* Borders */
.masonry-item::before,
.masonry-item::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  z-index: 9;
  transition: transform 0.5s ease;
}

.masonry-item::before { top: 20px; transform-origin: left; }
.masonry-item::after { bottom: 20px; transform-origin: right; }

.masonry-item .border-line {
  position: absolute;
  top: 0; bottom: 0; left: 20px; right: 20px;
  pointer-events: none;
}

.masonry-item .border-line::before,
.masonry-item .border-line::after {
  content: '';
  position: absolute;
  background: #fff;
  transition: transform 0.5s ease;
}

.masonry-item:hover::before,
.masonry-item:hover::after { transform: scaleX(1); }
.masonry-item:hover .border-line::before,
.masonry-item:hover .border-line::after { transform: scaleY(1); }

/* Magnifier Icon */
.magnifier-icon {
  width: 35px; height: 35px;
  display: flex;
  position: absolute;
  bottom: 45%;
  right: 50%;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 8px;
  font-size: 16px;
  opacity: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.magnifier-icon img {
  width: 100%; height: 100%; background: none;
}

.zoom-container:hover .magnifier-icon,
.masonry-item:hover .magnifier-icon {
  opacity: 1;
}

.zoom-container { position: relative; display: inline-block; }

/* Filter Buttons */
.filter-buttons { display: flex; gap: 50px; justify-content: center; margin: 35px 0; border-bottom: 1px solid #efefef; }
.filter-buttons button {
  position: relative;
  padding: 10px 35px;
  background: #fff;
  border-left: 2px solid #eb2327;
  border-right: 2px solid #eb2327;
  cursor: pointer;
  overflow: hidden;
  color: #000;
  transition: color 0.3s ease;
}
.filter-buttons button::before,
.filter-buttons button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #eb2327;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.filter-buttons button::before { top:0; transform-origin:left; }
.filter-buttons button::after { bottom:0; transform-origin:right; }
.filter-buttons button:hover::before,
.filter-buttons button:hover::after { transform: scaleX(1); }
.filter-buttons button:hover { color:#eb2327; }
.filter-buttons button.active { background:#55022b; color:#fff; }
.filter-buttons button.active::after { transform: scaleX(1); background:#55022b; }
.gallery_sec{
  width:100%;
}
.gallery_sec{
  width:100%;
}
.list {
    columns: 3;
    gap: 1rem;
    width: 100%;
}
.list > * {
    direction: ltr;
}
.list img {
  width: 100%;
  margin-bottom: 0;
  border-radius: 0.7rem;
}
.gallery_sec img {
  width: 100%;
  border-radius: 1rem;
}

.gallery_sec a {
    position: relative;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}


.gallery_sec a::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    background: none;
    background-size: contain;
    background-repeat: no-repeat;
  top:45%;
  left:50%;
  transform:translate(-50%, -50%);
}


.gallery_sec img {
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}

.gallery_sec a:hover img {
    position: relative;
    width: 100%;
    opacity: 0.5;
}

.gallery_sec a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* background: #000; */
}

.gallery_sec a:hover::before {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    background: url(../images/icons/magnifi.png);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 99;
    
}
.galler-div {
    background: #000;
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.gallery_sec {
    padding: 80px 0px;
    width: 100%;
}