.gallery-section {
  padding: 30px 0;
}

.gallery-title {
  font-weight: 700;
  margin-bottom: .35rem;
}

.gallery-subtitle {
  color: #6c757d;
  margin-bottom: 1.75rem;
}

.slider-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.slider-wrap.dragging {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.slide-item {
  flex: 0 0 auto;
  width: 340px;
  margin-right: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}

.slide-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.slide-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-wrap::before, .slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.slider-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa 10%, rgba(248,249,250,0));
}

.slider-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa 10%, rgba(248,249,250,0));
}

.lightbox-modal .modal-dialog {
  max-width: 1100px;
}

.lightbox-modal .modal-content {
  background: #111;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.lightbox-modal .modal-header {
  border: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0));
  pointer-events: none;
}

.lightbox-modal .modal-header .btn-close {
  pointer-events: auto;
}

.lightbox-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 1;
}

.lightbox-modal .carousel-inner {
  padding: 72px 64px 40px;
}

.lightbox-modal .carousel-item {
  text-align: center;
  transition: transform .6s ease-in-out;
}

.lightbox-modal .carousel-item img {
  width: auto;
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  object-fit: contain;
  display: inline-block;
  border-radius: 14px;
  background: transparent;
}

.lightbox-modal .carousel-control-prev, .lightbox-modal .carousel-control-next {
  width: 68px;
  opacity: 1;
}

.lightbox-modal .carousel-control-prev-icon, .lightbox-modal .carousel-control-next-icon {
  width: 2.6rem;
  height: 2.6rem;
  background-size: 70% 70%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

@media (max-width: 991.98px) {
  .slide-item {
    width: 290px;
  }
}

@media (max-width: 991.98px) {
  .slide-item img {
    height: 200px;
  }
}

@media (max-width: 991.98px) {
  .lightbox-modal .carousel-inner {
    padding: 72px 34px 24px;
  }
}

@media (max-width: 767.98px) {
  .gallery-section {
    padding: 45px 0;
  }
}

@media (max-width: 767.98px) {
  .slide-item {
    width: 240px;
    margin-right: 14px;
  }
}

@media (max-width: 767.98px) {
  .slide-item img {
    height: 165px;
  }
}

@media (max-width: 767.98px) {
  .slider-wrap::before, .slider-wrap::after {
    width: 36px;
  }
}

@media (max-width: 767.98px) {
  .lightbox-modal .carousel-inner {
    padding: 68px 18px 20px;
  }
}

@media (max-width: 767.98px) {
  .lightbox-modal .carousel-item img {
    max-height: 50vh;
  }
}

@media (max-width: 767.98px) {
  .lightbox-modal .carousel-control-prev, .lightbox-modal .carousel-control-next {
    width: 52px;
  }
}

