/* ==========================================================================
   Graphic Design Interactive 3D Showcase & 4x4 Grid Styles
   - Mode 1: 3D Perspective Motion Wall (Drifting 3D poster columns)
   - Mode 2: 4-Column Responsive Grid View (4 horizontal x 4 vertical visible)
   - Mode 3: High-Res Lightbox with Navigation
   ========================================================================== */

/* Fullscreen Modal Shell */
.gd-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background-color: #080304 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #FFFFFF;
}

.gd-modal:not(.active) * {
  pointer-events: none !important;
}

.gd-modal.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Atmospheric Ambient Glow & Dark Red/Wine Vignette */
.gd-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(93, 0, 3, 0.48) 0%, rgba(18, 5, 8, 0.88) 55%, #080203 92%);
  z-index: 1;
  pointer-events: none;
}

.gd-ambient-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
}

.gd-glow-1 {
  top: -150px;
  left: 20%;
  background: radial-gradient(circle, rgba(138, 154, 91, 0.4) 0%, transparent 70%);
}

.gd-glow-2 {
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.35) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Top Floating Glass HUD Header
   -------------------------------------------------------------------------- */
.gd-hud-header {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - clamp(20px, 4vw, 56px));
  max-width: 1440px;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 100;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 60%), rgba(14, 8, 10, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gd-hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gd-hud-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D5E5A8;
  background: rgba(138, 154, 91, 0.22);
  border: 1px solid rgba(138, 154, 91, 0.45);
  padding: 4px 10px;
  border-radius: 9999px;
}

.gd-hud-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  color: #FFFFFF;
}

.gd-hud-title .text-accent {
  color: #8A9A5B;
}

.gd-hud-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
}

/* Mode Switcher Buttons */
.gd-mode-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
}

.gd-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-mode-btn svg {
  stroke-width: 2.2;
}

.gd-mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.gd-mode-btn.active {
  background: linear-gradient(135deg, #9BB067 0%, #8A9A5B 100%);
  color: #0E130D;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(138, 154, 91, 0.45);
}

.gd-mode-btn.active svg {
  stroke: #0E130D;
}

/* Close Button */
.gd-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gd-close-btn:hover {
  background: rgba(255, 51, 102, 0.25);
  border-color: rgba(255, 51, 102, 0.6);
  color: #FF7B90;
  transform: scale(1.04);
}

.gd-close-text {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Modal Body Viewport
   -------------------------------------------------------------------------- */
.gd-modal-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   View 1: 3D Motion Perspective Wall (Mid-year_Recap.mp4 style)
   -------------------------------------------------------------------------- */
.gd-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  perspective: 900px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #030102;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-3d-plane {
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 240%;
  display: flex;
  justify-content: center;
  gap: 20px;
  transform-style: preserve-3d;
  transform: rotateX(34deg) rotateY(-14deg) rotateZ(8deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  pointer-events: auto;
}

.gd-3d-col {
  width: clamp(190px, 16vw, 250px);
  flex-shrink: 0;
  overflow: hidden;
  height: 100%;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}

.gd-3d-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}

/* Staggered Infinite Downward Drift (matching Mid-year_Recap.mp4) */
.gd-col-1 .gd-3d-track { animation: gdScrollTrack 28s linear infinite; }
.gd-col-2 .gd-3d-track { animation: gdScrollTrack 22s linear infinite; }
.gd-col-3 .gd-3d-track { animation: gdScrollTrack 26s linear infinite; }
.gd-col-4 .gd-3d-track { animation: gdScrollTrack 20s linear infinite; }
.gd-col-5 .gd-3d-track { animation: gdScrollTrack 24s linear infinite; }

.gd-3d-scene:hover .gd-3d-track {
  animation-play-state: running;
}

@keyframes gdScrollTrack {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0%);
  }
}

/* 3D Poster Card */
.gd-3d-card {
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  user-select: none;
}

.gd-3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-3d-card:hover {
  transform: translateZ(52px) scale(1.08);
  border-color: #D5E5A8;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.95), 0 0 32px rgba(138, 154, 91, 0.65);
  z-index: 50;
}

.gd-3d-card:hover img {
  transform: scale(1.04);
}

.gd-3d-card-info {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.gd-3d-card:hover .gd-3d-card-info {
  display: none !important;
  opacity: 0 !important;
}

.gd-card-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #D5E5A8;
  display: block;
  margin-bottom: 3px;
}

.gd-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
}

/* Floating Interactive Bottom Hint in 3D Mode */
.gd-floating-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 60%), rgba(14, 8, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  animation: gdFloatPulse 2.6s ease-in-out infinite;
  transition: all 0.25s ease;
}

.gd-floating-hint:hover {
  background: rgba(138, 154, 91, 0.3);
  border-color: #D5E5A8;
  color: #D5E5A8;
  transform: translateX(-50%) translateY(-3px) scale(1.03);
}

.gd-hint-icon {
  color: #D5E5A8;
  font-size: 14px;
}

@keyframes gdFloatPulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
    box-shadow: 0 22px 45px rgba(138, 154, 91, 0.35);
  }
}

/* --------------------------------------------------------------------------
   View 2: 4-Column Responsive Grid View
   4 photos in a row horizontally, 4 visible vertically, scrollable
   -------------------------------------------------------------------------- */
.gd-grid-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: 96px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-behavior: smooth;
}

/* Sleek Scrollbar for Grid View */
.gd-grid-scene::-webkit-scrollbar {
  width: 8px;
}
.gd-grid-scene::-webkit-scrollbar-track {
  background: rgba(8, 2, 4, 0.6);
}
.gd-grid-scene::-webkit-scrollbar-thumb {
  background: rgba(138, 154, 91, 0.45);
  border-radius: 4px;
}
.gd-grid-scene::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 154, 91, 0.85);
}

.gd-grid-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 20px;
}

.gd-grid-headline {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #D5E5A8 60%, #8A9A5B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gd-grid-subline {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* The 4-Column Layout */
.gd-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 28px 100px;
}

.gd-grid-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 50%), rgba(14, 8, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.gd-grid-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000000;
}

.gd-grid-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.gd-grid-zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(14, 19, 13, 0.85);
  border: 1px solid rgba(138, 154, 91, 0.6);
  color: #D5E5A8;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(6px);
  transition: transform 0.28s ease;
}

.gd-grid-meta {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.gd-grid-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8A9A5B;
}

.gd-grid-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.3;
}

.gd-grid-subtitle {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* Hover States for Grid Cards */
.gd-grid-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(138, 154, 91, 0.8);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 28px rgba(138, 154, 91, 0.35);
}

.gd-grid-card:hover .gd-grid-preview img {
  transform: scale(1.06);
}

.gd-grid-card:hover .gd-grid-overlay {
  opacity: 1;
}

.gd-grid-card:hover .gd-grid-zoom-pill {
  transform: translateY(0);
}

/* Card Highlighted Animation after transition from 3D */
.gd-card-highlighted {
  border-color: #D5E5A8 !important;
  box-shadow: 0 0 0 4px rgba(138, 154, 91, 0.5), 0 24px 60px rgba(0, 0, 0, 0.9) !important;
  transform: scale(1.03) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --------------------------------------------------------------------------
   View Mode Switching Logic (3D vs Grid)
   -------------------------------------------------------------------------- */
[data-view-mode="3d"] .gd-3d-scene {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: scale(1);
}

[data-view-mode="3d"] .gd-grid-scene {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(30px);
}

[data-view-mode="grid"] .gd-3d-scene {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(1.06);
}

[data-view-mode="grid"] .gd-grid-scene {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Lightbox / Fullscreen Artwork Viewer
   -------------------------------------------------------------------------- */
.gd-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1000010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-lightbox.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.gd-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  background: rgba(5, 2, 3, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.gd-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100020;
  transition: all 0.2s ease;
}

.gd-lightbox-close:hover {
  background: rgba(255, 51, 102, 0.4);
  border-color: #FF3366;
  transform: scale(1.08);
}

.gd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100020;
  transition: all 0.25s ease;
}

.gd-lightbox-prev { left: 28px; }
.gd-lightbox-next { right: 28px; }

.gd-lightbox-nav:hover {
  background: rgba(138, 154, 91, 0.35);
  border-color: #D5E5A8;
  color: #D5E5A8;
  transform: translateY(-50%) scale(1.1);
}

.gd-lightbox-content {
  position: relative;
  z-index: 100015;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gd-lightbox-img {
  max-width: 82vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.3);
  animation: gdLbZoom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gdLbZoom {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gd-lightbox-caption {
  text-align: center;
}

.gd-lb-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8A9A5B;
  display: block;
  margin-bottom: 4px;
}

.gd-lb-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.gd-lb-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .gd-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .gd-3d-col {
    width: 220px;
  }
}

@media (max-width: 820px) {
  .gd-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 10px 16px 80px;
  }
  .gd-hud-header {
    height: auto;
    padding: 10px 16px;
    border-radius: 24px;
  }
  .gd-hud-brand {
    display: none;
  }
  .gd-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .gd-lightbox-prev { left: 12px; }
  .gd-lightbox-next { right: 12px; }
}

@media (max-width: 540px) {
  .gd-works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gd-mode-btn span {
    display: none;
  }
  .gd-mode-btn {
    padding: 8px 12px;
  }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .gd-3d-track {
    animation: none !important;
  }
  .gd-floating-hint {
    animation: none !important;
  }
  .gd-3d-plane,
  .gd-3d-card,
  .gd-grid-card,
  .gd-modal,
  .gd-grid-scene,
  .gd-3d-scene,
  .gd-lightbox,
  .gd-lightbox-img {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* 5-Second Dual Image Cycler (Two Horizontal Side-by-Side Images) */
.project-preview-dual-cycler {
  position: relative;
  overflow: hidden;
}

.gd-dual-slide {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 6px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.98);
  z-index: 1;
}

.gd-dual-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.gd-dual-item {
  flex: 1 1 50%;
  width: calc(50% - 5px);
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  position: relative;
}

.gd-dual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .gd-dual-item img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .gd-dual-slide {
    gap: 6px;
  }
  .gd-dual-item {
    border-radius: 10px;
    width: calc(50% - 3px);
  }
  .gd-dual-item img {
    border-radius: 10px;
  }
}
