/*MODAL*/
.modal-slider {
  max-width: 100%;
  background: transparent;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.card-img-overlay {    
  background: linear-gradient(to bottom, #ffffff00, #171717);
  color: white;
  border-radius: 22px;
}

.modal-slider .rounded-box {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 20rem;
  border-radius: 24px;
    background-size: cover;
    background-repeat: no-repeat;
}
.modal-slider .modal-dialog-slider {
  max-width: 1260px!important;
}
.modal-slider .modal-dialog-slider .modal-content {
  min-height: 92vh;
  border-radius:22px;
}

.modal-slider .modal-header {
  border-bottom: none;
}

.modal-slider .close-modal-slider {    
  float: right;
  margin: 0rem 0rem 0rem auto;
  background-color: #000;
  border: none;
  color: white;
  font-size: 1.25rem;
  border-radius: 3rem;
  width: 32px;
  height: 32px;
  opacity: 1;
  line-height: 0;
}

.modal-slider .card {
  border:none;
}

/* Base style for the close button */
.close-modal-slider {
  z-index: 1051; /* higher than modal backdrop */
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: white;
}

.close-modal-slider {
  position: sticky;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1051;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: white;
  margin-left: auto;
  display: block;
}
.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  background-color: transparent;
  z-index: 10;
}


@media (min-width: 768px) {
.modal-slider .modal-content {
    flex-direction: row-reverse;
}
}
@media (max-width: 767.98px) {
  .modal-slider .modal-content {
    position: relative;
  }

  .modal-slider .modal-header {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 20;
    padding: 0;
  }

  .modal-slider .close-modal-slider {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    background-color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Floating close button for mobile */
@media (max-width: 767.98px) {
  .modal-slider .floating-close {
    position: sticky;
    top: 2.5rem;
    left: 93%;
    z-index: 1055; /* higher than modal backdrop */
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* Ensure it's hidden by default */
  .floating-close.d-none {
    display: none !important;
  }
}