/* Container Layouts */
.swp-container {
  display: grid;
  width: 100%;
}

.swp-grid {
  grid-template-columns: repeat(3, 1fr); /* default, overridden by elementor */
  display: grid;
  gap: 20px;
}

/* Tablet Fallback */
@media (max-width: 1024px) {
  .swp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Fallback */
@media (max-width: 767px) {
  .swp-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .swp-title {
    font-size: 14px;
  }
  .swp-bottom-username {
    font-size: 11px;
    padding: 4px 10px;
  }
}

.swp-list {
  display: flex;
  flex-direction: column;
}

/* Item Styles */
.swp-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.swp-item:hover {
  transform: translateY(-5px);
}

.swp-item-inner {
  border: 1px solid #eee;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.swp-thumbnail-wrapper {
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  position: relative;
}

.swp-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #fff;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swp-content {
  padding: 15px;
}

.swp-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.swp-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  border-radius: 50%; /* Circle */
  color: #fff;
  background: #555;
  text-transform: none; /* Icon doesn't need caps */
}
/* Official Brand Colors */
.swp-instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.swp-facebook {
  background: #3b5998;
}
.swp-tiktok {
  background: #000000;
}
.swp-youtube {
  background: #ff0000;
}
.swp-vimeo {
  background: #1ab7ea;
}
.swp-google_review {
  background: #fff;
  color: #4285f4;
  border: 1px solid #eee;
} /* Google often white with colored G */

/* ================= PRESETS ================= */

/* Modern Card */
.swp-preset-modern .swp-item-inner {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Soft large shadow */
  transition: all 0.3s ease;
}
.swp-preset-modern .swp-item:hover .swp-item-inner {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.swp-preset-modern .swp-content {
  padding: 20px;
  text-align: center;
}

/* Minimalist */
.swp-preset-minimal .swp-item-inner {
  border: none;
  box-shadow: none;
  background: transparent;
}
.swp-preset-minimal .swp-thumbnail-wrapper {
  border-radius: 8px; /* Slight round */
}
.swp-preset-minimal .swp-content {
  padding: 10px 0; /* Minimal padding */
}

/* Glassmorphism (Dark) */
.swp-preset-glass .swp-item-inner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.swp-preset-glass .swp-title {
  color: #fff; /* Assuming dark background usage */
}

/* Bold Frame */
.swp-preset-bold .swp-item-inner {
  border: 3px solid #000;
  box-shadow: 5px 5px 0px #000; /* Brutalist shadow */
  border-radius: 0;
}
.swp-preset-bold .swp-item:hover .swp-item-inner {
  box-shadow: 8px 8px 0px #000;
  transform: translate(-3px, -3px);
}

/* =========================================== */

/* Modal Styles */
.swp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Slightly darker */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swp-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.swp-modal-content {
  background: #000;
  width: 100%;

  /* Mobile-like dimensions */
  max-width: 400px;
  height: 85vh; /* Tall vertical */
  max-height: 900px;

  position: relative;
  border-radius: 20px; /* More rounded like a phone */
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .swp-modal-content {
    max-width: 95%; /* More width on small phones */
    height: 80vh; /* Slightly smaller height to fit UI bars */
  }
}

.swp-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 100;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Iframe */
.swp-modal-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swp-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Top Right Transparent Icon */
.swp-top-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20; /* High Z-index */
  font-size: 28px;
  pointer-events: none;
  display: block !important; /* Force show */
}

.swp-top-icon i {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Bottom Left Username */
.swp-bottom-username {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 20; /* High Z-index */
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.6); /* Darker, more visible bg */
  padding: 6px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex !important; /* Force show */
  align-items: center;
}

/* Carousel Overrides */
.swp-carousel-wrapper {
    width: 100%;
    padding-bottom: 40px; /* Space for pagination */
    overflow: hidden; /* Swiper needs this */
}

/* Ensure slides don't collapse */
.swiper-slide {
    height: auto; 
    display: flex;
    flex-direction: column;
}

.swiper-slide .swp-item {
    width: 100%;
}

/* Pagination Dots Custom Color */
.swiper-pagination-bullet-active {
    background: #000;
}
