/**
 * Swiper Block Styles
 * Modern gallery display with laptop frame overlay
 */
.swiper-block {
  --color: #0066cc;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

/* ensure the whole block uses border-box sizing */  .swiper-navigation {
  position: relative;
  top: auto;
  margin-top: 20px;
  margin-bottom: 0;
  justify-content: space-around;
  pointer-events: auto;
  }-block,
.swiper-block * {
  box-sizing: border-box;
}

/* Swiper Container */
.swiper-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 260px;
}

/* static laptop frame attached to the container so slides move under it */
.swiper-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 101%;
  height: 100%;
  background-image: url("../../../assets/masks/swiper-mask-transparent.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  pointer-events: none;
}

/**
 * Swiper Block Styles (clean, overlay removed)
 */

.swiper-block {
  --color: #0066cc;
  position: relative;
  width: 100%;
  margin: 40px auto;
  padding: 20px;
}

/* Swiper Container */
.swiper-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 260px;
}

/* Inner wrapper: fills the container */
.swiper-wrapper-container {
  position: relative;
  top: 35px;
  left: 49.8%;
  transform: translateX(-50%);
  width: 75%;
  height: 85%;
  z-index: 1;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.slide-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-image {
	margin-top: 20px;
  width: 100%;
  height: 95%;
  max-width: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
	background-image: unset !important;
}

.slide-image:hover {
  transform: scale(1.02);
}

/* Navigation Buttons */
.swiper-navigation {
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  z-index: 25;
  pointer-events: none;
}

.swiper-button-prev,
.swiper-button-next {
  width: 53px;
  height: 53px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  position: relative;
}

.nav-icon {
  width: 53px;
  height: 53px;
  opacity: 0.8;
  display: block;
  flex-shrink: 0;
}
.nav-icon-rotated {
  transform: rotate(180deg);
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.slide-image[loading="lazy"] {
  background: #f0f0f0;
  background-image: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ACF Block Placeholder */
.acf-block-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 12px;
  margin: 20px 0;
}
.acf-block-placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.acf-block-placeholder-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.acf-block-placeholder-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .swiper-block {
    margin: 20px auto;
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .swiper-container {
    box-sizing: border-box;
  }
  
  /* hide laptop-frame pseudo on tablet/mobile */
  .swiper-container::before {
    display: none !important;
  }
  .swiper-wrapper-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: visible; /* Allow navigation margins to show */
  }
  .slide-image {
    transition: none; /* Remove transition on mobile */
  }
  .swiper-navigation {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  margin-top: 30px;
  margin-bottom: 0;
  justify-content: space-around;
  pointer-events: auto;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 53px;
    height: 53px;
  }
  .nav-icon {
    width: 53px;
    height: 53px;
  }
}

@media (max-width: 480px) {
  .swiper-block {
    margin: 15px auto;
    padding: 5px;
    box-sizing: border-box;
  }
  .swiper-container {
    box-sizing: border-box;
    min-height: 205px;
  }
  /* hide laptop-frame pseudo on small mobile */
  .swiper-container::before {
    display: none !important;
  }
  .swiper-wrapper-container {
  position: relative;
  /* reset desktop offsets on small screens so nav naturally flows below */
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-sizing: border-box;
  }
  .slide-image {
    transition: none; /* Remove transition on mobile */
  }
  .swiper-navigation {
  position: relative;
  top: auto;
  margin-top: 20px;
  margin-bottom: 0;
  justify-content: space-around;
  pointer-events: auto;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 53px;
    height: 53px;
  }
  .nav-icon {
    width: 53px;
    height: 53px;
  }
}
