

/* SERVICES MODAL SLIP */
/* ===== Overlay ===== */
.slip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: opacity 0.25s ease;
}

/* ===== Modal ===== */
.slip-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
				border-radius: 12px;
}

.slip-modal {
    border-radius: 12px;
    overflow: hidden; 
}

.slip-modal-inner {
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.slip-modal-inner::-webkit-scrollbar {
    width: 10px;
}

.slip-modal-inner::-webkit-scrollbar-thumb {
    border-radius: 10px;
}


/* Active */
.slip-overlay.show,
.slip-modal.show {
    opacity: 1;
    visibility: visible;
}

.slip-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Header ===== */
.slip-modal-header {
    display: flex;
				flex-direction: column;
    align-items: center;
    padding: 40px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
				position: relative;
}

.slip-modal-title {
    grid-column: 2;
    text-align: center;
    margin: 0;
    font-size: 36px;
}

.slip-modal-close {
    grid-column: 3;
    justify-self: end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
				position: absolute;
				top: 10px;
				right: 12px;
}


/* ===== Hero ===== */
.slip-modal-hero {
    height: 220px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* ===== Body ===== */
.slip-modal-body {
    padding: 24px;
}

/* ===== Footer Nav ===== */
.slip-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

.slip-modal-footer a {
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: inherit;
    transition: background 0.2s ease;
}
.slip-modal-footer a.slip-modal-prev {
	margin: 0 auto 0 0;
}
.slip-modal-footer a.slip-modal-next {
	margin: 0 0 0 auto;
}

.slip-modal-footer a:hover {
    background: rgba(0,0,0,0.05);
}

/* Lock scroll */
body.slip-modal-open {
    overflow: hidden;
}


/* ==============================
   MOBILE MODAL SLIP
================================ */

@media (max-width: 768px) {

	.slip-modal {
					max-height: unset;
					height: 100vh;
					width: 100vw;
	}
	.slip-modal-inner {
					max-height: unset;
	}
	.slip-modal-header {
		position: sticky;
		top: 0;
	}

}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8); /* Dark background */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
      z-index: 1200;
}

/* Modal Content */
.modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 800px;
  max-width: 70vw; 
  max-height: 70vh; 
  overflow: hidden; 
  background: #fff;
  padding: 20px;
}

/* Image inside the modal */
.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  max-width: 100%;
  max-height: 100%;
  display: block; 
}


.modal-image-caption {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
  text-align: center;
  max-width: 100%;
  line-height: 1.4;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 70px;
  border: none;
  font-size: 25px;
  cursor: pointer;
  padding: 10px;
  font-weight: bold;
  z-index: 1050;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.prev-btn::before {
  content: '<';
}

.next-btn::before {
  content: '>';
}
