/* container look */

/* remove previous effects */
.gallery-models .slick-slide,
.gallery-models .slick-center { filter:none; opacity:1; transform:none; }

/* put slides next to each other with a little gap */
.gallery-models .slick-slide { padding: 0px; }

/* IMPORTANT: keep aspect ratio, no crop.
   Fix a consistent row height and let width auto-adjust. */
.gallery-models .slick-slide img {
  display:block;
  height: 520px;      /* desktop row height – adjust to taste */
  width: auto;        /* preserves aspect ratio */
  object-fit: contain;/* no cropping */
  border-radius: 10px;
  background:#000;    /* looks nicer around transparent/letterboxed images */
}

/* smaller heights on small screens */
@media (max-width: 1024px){
  .gallery-models .slick-slide img { height: 520px; }
}
@media (max-width: 768px){
  .gallery-models .slick-slide img { height: 320px; }
}

/* arrows */
.gallery-models { position:relative; }
.gallery-models .slick-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  background:#fff; border:0; border-radius:50%;
  width:40px; height:40px; z-index:5; cursor:pointer; opacity:.9;
}
.gallery-models .slick-prev{ left:10px; }
.gallery-models .slick-next{ right:10px; }

/* dots – keep your style */
.slick-dots { position:absolute; bottom:-35px; width:100%; text-align:center; }
.slick-dots li { display:inline-block; width:10px; height:10px; margin:0 5px; }
.slick-dots li button { width:10px; height:10px; padding:5px; border:0; background:transparent; font-size: 0px; }
.slick-dots li button:before{
  content:''; display:block; width:10px; height:10px;
  background:#fff; border:1px solid #de582c; border-radius:50%;
}
.slick-dots li.slick-active button:before{ background:#de582c; }





/* Each slide takes full height, adjusts width by Slick */
.gallery-models .slick-slide {
  padding: 0px;   /* gutter between images */
  box-sizing: border-box;
}

/* Make all images fill the slide */
.gallery-models .slick-slide img {
  width: 100%;     /* full slide width */
  height: 600px;   /* consistent row height – adjust to taste */
  object-fit: cover;
  border-radius: 15px;
  display:block;
}

/* Arrows */
.gallery-models .slick-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  background:#fff; border:0; border-radius:50%;
  width:40px; height:40px; z-index:5; cursor:pointer; opacity:.9;
}
.gallery-models .slick-prev { left:10px; }
.gallery-models .slick-next { right:10px; }

/* Dots */
.slick-dots { bottom:10px; }


/* Help the browser plan the animation */
.gallery-models .slick-track,
.gallery-models .slick-slide {
  will-change: transform;
}

/* Prevent blinks/tearing while sliding */
.gallery-models .slick-slide img {
  backface-visibility: hidden;
  transform: translateZ(0);      /* trigger GPU */
}

/* Optional: match the easing on the track (some themes override it) */
.gallery-models .slick-track {
  transition-timing-function: cubic-bezier(.25,.8,.25,1) !important;
}



/* floating expand icon */
.gallery-models .expend_icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.gallery-models .expend_icon img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

/* show on hover */
.gallery-models .gallery-slide:hover .expend_icon {
  opacity: 1;
  background: rgba(0,0,0,0.75);
}


/* gutter between slides */
.gallery-models .slick-slide { padding: 0px !important; box-sizing: border-box; }

/* images fill their slide; uniform row height */
.gallery-models .slick-slide img{
  width: 100%;
  height: 520px;      /* adjust to taste */
  object-fit: cover;  /* switch to 'contain' if you want full uncropped image */
  display: block;
  border-radius: 0px;
}

/* smaller heights on small screens */
@media (max-width: 1024px){ .gallery-models .slick-slide img{ height: 460px; } }
@media (max-width: 640px) { .gallery-models .slick-slide img{ height: 320px; } }


a.expend_icon.view-gallery {
    float: right;
    position: relative;
    top: auto;
    left: auto;
    right: 5px;
    background-color: #df582c;
    padding: 8px;
    line-height: 0px;
    border-radius: 10px;
    max-width: 40px;
    bottom: 40px;
    /* margin-bottom: 0; */
}