/* Gallery Grid Wrapper */
.gowinda-gallery-block {
  display: grid;
  padding: 20px 0;
  width: 100%;
}

.gowinda-gallery-empty {
  padding: 40px;
  text-align: center;
  background: #f7f9fa;
  border: 2px dashed #ccd0d4;
  border-radius: 12px;
  color: #646970;
  font-size: 16px;
}

/* Premium Card Design */
.gowinda-gallery-item {
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.gowinda-gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image Container Styles */
.standard-gallery-container,
.discover-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f3f5;
}

.standard-gallery-container img,
.discover-container img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Faded Hover Effect */
.hover-mode-hover.hover-type-faded .image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.hover-mode-hover.hover-type-faded .gowinda-gallery-item:hover .image-after {
  opacity: 1;
}

/* Slide Hover Effect */
.hover-mode-hover.hover-type-slide .image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.hover-mode-hover.hover-type-slide .gowinda-gallery-item:hover .image-after {
  transform: translateY(0);
}

/* Discover Sliding Split-screen Show */
.discover-container {
  touch-action: pan-y;
  cursor: ew-resize;
}

.discover-container .image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.discover-container .image-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: inset(0 50% 0 0); /* Default to middle split */
  will-change: clip-path;
  transition: none !important; /* OVERRIDE any third-party global transitions (e.g. from Gutenverse) */
}

.discover-container .image-before-inner {
  width: 100%;
  height: 100%;
}

/* Discover Separator Bar & Premium Slider Handle */
.discover-container .discover-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  will-change: left;
  transition: none !important; /* OVERRIDE any third-party global transitions (e.g. from Gutenverse) */
}

/* Glowing central circle button */
.discover-container .discover-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

/* Handle arrows */
.discover-container .discover-handle-arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 5;
  transform: translateY(-50%);
}

.discover-container .discover-handle-arrow.left {
  left: -13px;
  border-right: 8px solid #1a1a1a;
}

.discover-container .discover-handle-arrow.right {
  right: -13px;
  border-left: 8px solid #1a1a1a;
}

/* Animation transitions only when is-animating class is active */
.discover-container.is-animating .image-before-wrapper {
  transition: clip-path 0.65s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.discover-container.is-animating .discover-handle {
  transition: left 0.65s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Content Details */
.gowinda-gallery-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  background: #ffffff;
}

.gowinda-gallery-title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.3;
}

.gowinda-gallery-description {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}
