.storefront-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 20px;
}

.storefront-3d-card {
  background: #0a0f1a;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
}

.storefront-3d-scene {
  position: relative;
  height: 280px;
  background: linear-gradient(to bottom, #1a2438, #0e1422);
  border-radius: 16px;
  overflow: hidden;
  perspective: 900px;
  border: 1px solid #24304a;
}

/* Glass Door */
.storefront-door {
  position: absolute;
  width: 180px;
  height: 260px;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transform: rotateY(-12deg) translateZ(30px);
}
/* G2B Cyber-Sonic Audio Player Customization */

/* 1. Shrink the height and remove the default background */
.wp-block-audio audio {
    height: 35px; /* Makes it a thin, sleek strip */
    background: transparent;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Makes the player white/neon to pop against the navy */
    border-radius: 50px;
    width: 90%; /* Centers it with some breathing room */
    margin: 0 auto;
    display: block;
}

/* 2. Hide the bulky play/volume container if it's inside a Cover Block */
.wp-block-cover .wp-block-audio {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -10px; /* Pulls it tighter into the center of your frame */
}

/* 3. Add a soft cyan glow to the player */
.wp-block-audio audio::-webkit-media-controls-enclosure {
    background: rgba(0, 210, 255, 0.1); /* Subtle G2B Light Blue glow */
    border: 1px solid rgba(0, 210, 255, 0.3);
}
/* Business Name on Glass */
.business-name {
  color: #79aaff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Neon OPEN Sign */
.open-sign {
  font-size: 1.0rem;
  font-weight: bold;
  color: #00e6ff;
  text-shadow: 0 0 5px #00e6ff, 0 0 15px #00e6ff;
}

/* 3D Interior */
.office-interior {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle at top left, #2a3958, #101624);
  transform: rotateY(15deg) translateZ(-40px);
}

/* Interior props */
.desk {
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 120px;
  height: 40px;
  background: #1b2535;
  border-radius: 6px;
}

.lamp {
  position: absolute;
  bottom: 60px;
  left: 35px;
  width: 20px;
  height: 20px;
  background: #4da6ff;
  border-radius: 50%;
  box-shadow: 0 0 20px #4da6ff;
}

.sofa {
  position: absolute;
  bottom: 15px;
  right: 25px;
  width: 90px;
  height: 35px;
  background: #0f1a2d;
  border-radius: 8px;
}
.my-video-title {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    padding: 20px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    z-index: 99 !important;
}

/* FINAL G2B NEURAL ALIGNMENT - TRUE BOTTOM */
.g2b-video-lift {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* This pulls the video UP into the frame */
    margin-top: -190px !important; 
    /* This keeps the video perfectly sized for the box */
    max-width: 460px !important; 
    position: relative;
    z-index: 999;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 900px) {
    .g2b-video-lift {
        margin-top: -90px !important;
        max-width: 75% !important;
    }
}

/* Pushes the Frame down so the Welcome Header doesn't hide it */
.wp-block-cover {
    margin-top: 80px !important; 
    padding-top: 20px !important;
}

/* Optional: If the header is "sticky" and following you down */
#masthead, .site-header {
    position: relative !important;
}

/* DESKTOP: Stronger pull for wide screens */
@media (min-width: 1025px) {
    .g2b-video-lift {
        margin-top: -240px !important; 
        max-width: 500px !important;
    }
}

/* TABLET: Keeping your "Perfect" settings */
@media (min-width: 769px) and (max-width: 1024px) {
    .g2b-video-lift {
        margin-top: -180px !important; 
        max-width: 450px !important;
    }
}

/* MOBILE: Shorter pull for narrow screens */
@media (max-width: 768px) {
    .g2b-video-lift {
        margin-top: -85px !important;
        max-width: 85% !important;
    }
}

/* GLOBAL RULES */
.g2b-video-lift {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 999;
}

/* ELON'S COMMAND OVERRIDE - LEVEL 10 */
.wp-block-cover .wp-block-video.g2b-video-lift, 
figure.wp-block-video.g2b-video-lift video {
    display: block !important;
    margin-top: -260px !important; /* Massive pull up */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 480px !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 9999 !important;
    transform: translateY(0) !important; 
}

/* Mobile Correction */
@media (max-width: 768px) {
    .wp-block-cover .wp-block-video.g2b-video-lift {
        margin-top: -100px !important;
        width: 80% !important;
    }
}

/* 1. CRUSH THE WELCOME BLOCK GAP */
/* This targets the top section to make sure it stays slim */
.wp-block-group.welcome-section, 
header.entry-header,
.post-1258 .entry-content > *:first-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. THE FRAME CAP (STOPS THE WIDE EXPANSION) */
/* This prevents the 8K frame from getting too huge on big screens */
.wp-block-cover.g2b-frame-container {
    max-width: 1200px !important; 
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 500px !important; /* Adjust based on your frame shape */
}

/* 3. THE VIDEO TRACTOR BEAM (FINAL VERSION) */
.g2b-video-lift {
    position: relative !important;
    z-index: 999 !important;
    margin-top: -320px !important; /* Stronger pull to bypass the Welcome block */
    width: 480px !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* 4. MOBILE EMERGENCY ALIGNMENT */
@media (max-width: 768px) {
    .g2b-video-lift {
        margin-top: -120px !important;
        width: 80% !important;
    }
}

/* THE G2B FINAL ALIGNMENT */
.g2b-video-lift {
    display: block !important;
    margin-top: -285px !important; /* Adjust this number if it's too high/low */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 480px !important;
    max-width: 90% !important;
    position: relative !important;
    z-index: 99 !important;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .g2b-video-lift {
        margin-top: -120px !important;
        width: 80% !important;
    }
}

/* THE G2B FINAL LOCK */
.g2b-video-lift {
    display: block !important;
    position: relative !important;
    top: -290px !important; /* This is like 'holding' it up with your hand */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 460px !important; /* Adjust this for the width you liked */
    z-index: 99 !important;
}

/* LOCK THE FRAME HEIGHT */
.g2b-frame-container {
    height: 600px !important; /* Force the height so it doesn't grow too tall */
    min-height: 600px !important;
    overflow: visible !important; /* Let the video "pop" out if needed */
}

/* RE-CENTER THE VIDEO */
.g2b-video-lift {
    display: block !important;
    position: relative !important;
    top: -380px !important; /* We might need a bigger push to get it back into the wood */
    z-index: 9999 !important;
    width: 480px !important;
    margin: 0 auto !important;
}

