/*
Theme Name: VE3D Dock Glow Theme
Author: VE3D
Description: VE3D theme with hero logo image, dock PNG with glow, collage, gallery and contact pages.
Version: 2.1
*/

body {
    margin: 0;
    background: #070707;
    color: white;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 22px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-left {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.25,0.8,0.3,1);
}

.nav-left.visible {
    opacity: 1;
    pointer-events: auto;
}

.dock-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-logo {
    height: 34px;
    width: auto;
    position: relative;
    z-index: 2;
}

.dock-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle,
        rgba(255,0,50,0.45),
        rgba(255,0,50,0.1),
        transparent 70%);
    filter: blur(18px);
    opacity: 0;
    z-index: 1;
    animation: logoPulse 6s ease-in-out infinite;
    transition: opacity 0.6s ease;
}

.nav-left.visible .dock-glow {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 48px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.12rem;
    letter-spacing: 0.07em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

nav a:hover { opacity: 1; color: red; }

/* ============================================
   GLOW ANIMATIONS
   ============================================ */
@keyframes glowPulse {
    0%   { text-shadow: 0 0 6px rgba(255,0,0,0.3); }
    50%  { text-shadow: 0 0 22px rgba(255,20,20,1); }
    100% { text-shadow: 0 0 6px rgba(255,0,0,0.3); }
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   ART BACKGROUND
   ============================================ */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(rgba(255,30,30,0.12), transparent 75%);
    filter: blur(120px);
    z-index: 0;
    animation: drift 28s infinite ease-in-out alternate;
}

.shape1 { width: 800px; height: 800px; top: -260px; left: -240px; }
.shape2 { width: 650px; height: 650px; bottom: -200px; right: -180px; animation-duration: 33s; }
.shape3 { width: 500px; height: 500px; top: 45%; right: 12%; animation-duration: 40s; }

@keyframes drift {
    0%   { transform: translateY(0) translateX(0); }
    100% { transform: translateY(65px) translateX(-55px); }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 70% 15%, rgba(255,255,255,0.05), transparent 65%),
        radial-gradient(circle at 15% 85%, rgba(255,0,0,0.10), transparent 75%),
        linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.1));
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   HERO AREA WITH IMAGE LOGO
   ============================================ */
.intro {
    position: relative;
    height: auto;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}


.hero-logo {
    /* Higher resting position to keep clear separation from the intro across scales */
    margin-top: 2vh;
    position: sticky;
    top: 10vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    transition: transform 0.7s cubic-bezier(0.25,0.8,0.3,1), opacity 0.7s cubic-bezier(0.25,0.8,0.3,1);
}

.hero-logo-inner {
    position: relative;
    display: inline-block;
}

.hero-logo-img {
    height: 15vw;
    max-height: 220px;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.hero-logo-glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle,
        rgba(255,0,50,0.70),
        rgba(255,0,50,0.15),
        transparent 70%);
    filter: blur(22px);
    z-index: 1;
    animation: logoPulse 6s ease-in-out infinite;
}

/* Docked: shrink WHILE moving toward nav-left (origin morph) */
.hero-logo.docked {
    transform: translate3d(calc(-50vw + 72px), -26vh, 0) scale(0.16);
    opacity: 0;
}

/* ============================================
   INTRO TEXT
   ============================================ */
.intro-box {
    width: 70%;
    max-width: 880px;
    background: rgba(255,0,0,0.065);
    padding: 34px;
    border-left: 3px solid red;
    border-right: 3px solid red;
    margin-top: 260px;
    font-size: 1.32rem;
    line-height: 1.7;
    opacity: 1;
    transition: opacity 0.2s linear;
}

/*
   iPhone fix (keeps your "desktop zoomed-out" mobile approach: viewport width=1200).
   On small-height touch screens, the sticky logo occupies more vertical space at load.
   We simply push the intro box down so it never starts underneath the logo.
*/
@media (max-height: 780px) and (hover: none) and (pointer: coarse) {
    .intro-box {
        margin-top: 440px;
    }
}

/* Desktop: keep the VE3D logo visually centered between the dock and intro copy */
@media (min-width: 1024px) {
    .hero-logo {
        top: 16vh;
        margin-top: 6vh;
    }
}

/* ============================================
   INTRO COLLAGE
   ============================================ */
.intro-collage {
    width: 82%;
    max-width: 1100px;
    height: 420px;
    margin-top: 90px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.collage-item {
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);

    background-size: cover;
    background-position: center;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.35s ease;
}

.collage-item:hover {
    transform: translateY(-14px) scale(1.05);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.75);
    opacity: 1;
}

/* ============================================
   SHOWCASE
   ============================================ */
.showcase {
    width: 85%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px 0 120px;
}

.showcase-block {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease-out;
    margin-bottom: 110px;
}
.showcase-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-image-large {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 70px rgba(0,0,0,0.85);
}
.showcase-image-large img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.showcase-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 45px;
    align-items: center;
}
.showcase-row.reverse {
    grid-template-columns: 1fr 1.25fr;
}

.showcase-image-medium {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 22px 55px rgba(0,0,0,0.85);
}
.showcase-image-medium img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.showcase-video {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: radial-gradient(circle at top left, rgba(255,0,0,0.35), rgba(0,0,0,0.92));
}

.video-placeholder {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0.85;
}

.video-play-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    opacity: 0.8;
}

.video-play-icon::before {
    content: "";
    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

.showcase-caption {
    margin-top: 16px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.72);
}

/* ============================================
   GENERIC PAGE WRAPPER (Contact / Gallery)
   ============================================ */
.page-wrap {
    padding-top: 140px;
    width: 85%;
    max-width: 1100px;
    margin: 0 auto 120px;
}

/* CONTACT PAGE */
.page-contact h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
}
.page-contact a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.page-contact a:hover {
    color: red;
    border-bottom-color: red;
}

/* GALLERY PAGE */
.gallery-title {
    margin-top: 160px;
    text-align: center;
    font-size: 4rem;
    letter-spacing: -0.03em;
    color: white;
}

.grid {
    margin: 60px auto;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.item {
    height: 300px;
    background: #222;
    border: 2px dashed #444;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease-out;
}

.item.visible {
    opacity: 1;
    transform: translateY(0);
}

.item:hover {
    border-color: red;
    color: red;
    transform: scale(1.03);
    transition: 0.3s;
}


/* Contact page polish */
.page-contact .contact-lede{max-width:780px;line-height:1.6;opacity:0.9;margin:14px 0 22px;}
.page-contact .contact-note{opacity:0.7;margin-top:16px;}

/* FEATURED SHOWCASE VIDEO */
.showcase-image-large video,
.showcase-image-large .showcase-video {
    width: 100%;
    height: auto;
    display: block;
}


}

/* CLIENTS STRIP – CENTERED & TIGHTER */
.clients-strip{
    padding: 10px 0 32px; /* reduced gap above, comfortable below */
}

.clients-inner{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
}

.clients-inner .dot{
    opacity: 0.35;
    margin: 0 6px;
}

@media (min-width: 768px){
    .clients-strip{
        padding: 12px 0 36px;
    }
}

/* TIGHTEN GAP BETWEEN BARS AND VIDEO (SOURCE: BARS SECTION) */
.intro-collage,
.bar-images,
.bars,
.collage {
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
}

.bars { display: flex; justify-content: center; margin-bottom: 0; padding-bottom: 0; }

.featured-video { margin-top: 0; padding-top: 0; }

.text-block, .text-box, .content-text {
    font-family: Tahoma, Arial, sans-serif;
}

/* Showcase images */
.showcase-block:nth-of-type(2) .showcase-image-medium {
    background-image: url("images/ve3dnikesnake.jpg");
    background-size: cover;
    background-position: center;
}

.showcase-block:nth-of-type(3) .showcase-image-medium {
    background-image: url("images/VE3Dpicture2.jpg");
    background-size: cover;
    background-position: center;
}

/* Reveal showcase images (remove placeholder overlay) */
.showcase-image-medium {
    position: relative;
    background-color: transparent;
    overflow: hidden;
}

.showcase-image-medium::before,
.showcase-image-medium::after {
    display: none !important;
}

.showcase-image-medium > div {
    display: none !important;
}

/* === FORCE SHOWCASE IMAGES VISIBLE (FINAL) === */
.showcase-block,
.showcase-row,
.showcase-image-medium {
    background: transparent !important;
}

.showcase-block::before,
.showcase-block::after,
.showcase-row::before,
.showcase-row::after,
.showcase-image-medium::before,
.showcase-image-medium::after {
    content: none !important;
    display: none !important;
}

.showcase-image-medium * {
    display: none !important;
}

.showcase-image-medium {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

/* === RESTORE SHOWCASE IMAGES === */
.showcase-block:nth-of-type(2) .showcase-image-medium {
    background-image: url("images/ve3dnikesnake.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.showcase-block:nth-of-type(3) .showcase-image-medium {
    background-image: url("images/VE3Dpicture2.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
}

/* === REMOVE STRAY LINES / DIVIDERS === */
hr,
.divider,
.showcase-divider,
.showcase-line {
    display: none !important;
}

/* === FIX COLLAPSED SHOWCASE IMAGE HEIGHT === */
.showcase-image-medium {
    min-height: 360px !important;
    height: auto;
    display: block;
}

/* Ensure grid rows allow height */
.showcase-row {
    align-items: stretch;
}


/* === CONTACT SIGNATURE BLOCK === */
.page-contact .signature{
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 18px;
    text-align: center;
    line-height: 1.8;
}
.page-contact .signature a{
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}
.page-contact .signature a:hover{
    border-bottom-color: rgba(255,0,50,0.45);
}
.page-contact .address-link{
    display: inline-block;
}


/* === CONTACT PAGE === */

.contact-title{
    margin: 140px auto 40px;
    max-width: 1200px;
    padding: 0 6vw;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.contact-wrap{
    max-width: 1200px;
    margin: 0 auto 140px;
    padding: 0 6vw;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 60px;
    align-items: start;
}

.contact-panel{
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-block{
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 22px 22px;
    backdrop-filter: blur(8px);
}

.contact-label{
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 10px;
}

.contact-link{
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 2px;
    line-height: 1.6;
    transition: 0.25s ease;
    display: inline-block;
}

.contact-link:hover{
    color: #ff0032;
    border-bottom-color: rgba(255,0,50,0.55);
}

.contact-coords{
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.65;
}

.contact-map{
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
    height: 460px;
}

.contact-map iframe{
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) contrast(1.05) brightness(0.85);
}

@media (max-width: 980px){
  .contact-title{ margin-top: 120px; font-size: 36px; }
  .contact-wrap{ grid-template-columns: 1fr; gap: 30px; }
  .contact-map{ height: 360px; }
}

.ve3d-contact-info .contact-meta {
    margin-top: 14px;
    font-size: 0.85rem;
    opacity: 0.55;
    letter-spacing: 0.03em;
}


/* === FORCE GOOGLE MAP FULL COLOUR === */
.ve3d-contact-map iframe {
    filter: none !important;
    -webkit-filter: none !important;
}

/* === CENTER CONTACT BLOCK WITH MAP === */
.ve3d-contact-inner {
    align-items: center;
}

.ve3d-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === CONTACT MAP ALIGN UP === */
.ve3d-contact-map {
    margin-top: -24px;
}


/* HOME VIDEO */
.home-video{width:100%;margin:0;padding:0;overflow:hidden;background:#000}
.home-video-element{width:100%;max-height:90vh;object-fit:cover;display:block}


/* === CONTACT PAGE: REMOVE ALL BACKGROUNDS ONLY === */
body.page-contact,
body.page-contact * {
    background: none !important;
}

body.page-contact .ve3d-glow {
    display: none !important;
}


/* ===============================
   CONTACT PAGE – PROFESSIONAL LAYOUT
================================ */

.contact-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Social icons (Contact page) */
.contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 0.75rem;
}

.contact-social .social-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-social .social-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    opacity: 0.92;
}

.contact-social .social-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(209,22,27,0.55);
    box-shadow: 0 0 22px rgba(209,22,27,0.22);
}

.contact-social .social-icon:hover svg {
    fill: #d1161b;
}

.contact-card {
    padding: 2.2rem 2.4rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-card h4 {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.contact-card p {
    margin: 0;
    font-size: 1.05rem;
}

.contact-card span {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.contact-map {
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }
}


/* === BACKGROUND CONSOLIDATION FIX === */
html, body {
    min-height: 100%;
}

body {
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Ensure glow layer never creates seams */
.ve3d-glow {
    position: fixed;
    inset: 0;
    height: 100vh;
    pointer-events: none;
}


/* CONTACT LINKS */
.contact-link {
    color: #d1161b;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}


/* CONTACT LINK HIGHLIGHT */
.contact-link {
    color: #d1161b !important;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}


/* ===============================
   HOME PAGE TYPOGRAPHY POLISH
   Baseline-safe, visual only
================================ */

body.home,
.home-page {
    color: #d6d6d6;
}

body.home h1,
body.home h2,
body.home h3,
.home-page h1,
.home-page h2,
.home-page h3 {
    color: #e0e0e0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body.home p,
.home-page p {
    color: #cfcfcf;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

@media (min-width: 900px) {
    body.home p,
    .home-page p {
        font-size: 1.1rem;
    }
}


/* ===============================
   HOME BOTTOM VIDEO – MATCH FEATURED
================================ */
.home-video {
    display: flex;
    justify-content: center;
    margin: 10 0 18rem;
}

.home-video-element {
    max-width: 1100px;
    width: 100%;
    border-radius: 26px;
}

.home-video-element {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
}


/* ============================
   MOBILE VISUAL ZOOM-OUT
   Reliable across iOS & Android
============================ */

@media (max-width: 768px) {
    body {
        transform: scale(0.9);
        transform-origin: top center;
        width: 111%;
    }
}


/* ============================
   MOBILE SCALE VIA WRAPPER
   Safari-safe
============================ */

@media (max-width: 768px) {
    #site-scale {
        transform: scale(0.9);
        transform-origin: top center;
        width: 111%;
    }
}

/* ============================
   MOBILE: PREVENT HERO LOGO OVERLAP
   Sticky + transformed wrappers can cause the hero logo to render over the intro text.
   On small screens, keep the logo in normal flow and reduce the fixed spacing.
============================ */

@media (max-width: 768px) {
    .hero-logo {
        position: relative !important;
        top: auto !important;
        margin-top: 110px !important; /* clears fixed nav */
    }

    .intro-box {
        margin-top: 36px !important;
        width: 86% !important;
        padding: 22px !important;
        font-size: 1.08rem !important;
        line-height: 1.6 !important;
    }

    .hero-logo-img {
        height: 22vw !important;
        max-height: 190px !important;
    }
}


/* ============================
   BACKGROUND RENDERING FIX (iPhone Safari)
   - Avoid negative z-index on fixed layers (often renders as solid black)
   - Provide a body-level animated gradient as a fallback so the background never goes "flat"
============================ */
html { background: #000; }
body {
    position: relative;
    background: radial-gradient(ellipse at 15% 85%, rgba(255,0,50,0.18) 0%, rgba(0,0,0,0.0) 55%),
                radial-gradient(ellipse at 80% 25%, rgba(255,0,50,0.08) 0%, rgba(0,0,0,0.0) 60%),
                #000;
    background-size: 220% 220%;
    animation: ve3dBodyDrift 18s ease-in-out infinite;
}

@keyframes ve3dBodyDrift {
    0%   { background-position: 0% 50%, 100% 0%, 0 0; }
    50%  { background-position: 100% 50%, 0% 100%, 0 0; }
    100% { background-position: 0% 50%, 100% 0%, 0 0; }
}

#site-scale { position: relative; z-index: 2; background: transparent; }
.bg-shape { z-index: 0 !important; pointer-events: none; }




@media (max-width: 768px) {
    body {
        transform: none !important;
        width: auto !important;
        transform-origin: initial !important;
    }
}



/* =========================================================
   GALLERY (Media Library auto-grid + lightbox)
   Imported from January gallery build
   ========================================================= */
/* ============================================
   GALLERY
   ============================================ */
.gallery-page {
    position: relative;
    z-index: 1;
}

.gallery-shell {
    width: min(1500px, 92vw);
    margin: 0 auto;
    padding: 140px 0 90px; /* top padding clears fixed nav */
}

.gallery-header {
    text-align: center;
    margin-bottom: 44px;
}

.gallery-title {
    margin: 0 0 10px;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    opacity: 0.95;
}

.gallery-subtitle {
    margin: 0;
    opacity: 0.7;
    letter-spacing: 0.03em;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover video {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.gallery-item.is-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.gallery-item.is-video::before {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 26px;
    line-height: 1;
    color: rgba(255,255,255,0.92);
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.gallery-empty {
    padding: 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.gallery-empty-hint {
    opacity: 0.75;
}

.gallery-pagination {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-pagination a,
.gallery-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0.85;
}

.gallery-pagination a:hover {
    opacity: 1;
    border-color: rgba(255,0,50,0.45);
}

.gallery-pagination .current {
    opacity: 1;
    background: rgba(255,0,50,0.14);
    border-color: rgba(255,0,50,0.55);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.ve3d-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
}

.ve3d-lightbox.is-open {
    display: flex;
}


.ve3d-lightbox-stage {
    width: min(1200px, 92vw);
    height: min(78vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    pointer-events: none;
}

.ve3d-lightbox-main {
    max-width: 70%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.ve3d-lightbox-video {
    max-width: 72%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    display: none;
}

.ve3d-lightbox-side {
    max-width: 14%;
    max-height: 55%;
    object-fit: contain;
    opacity: 0.45;
    filter: brightness(0.9);
    transform: scale(0.92);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ve3d-lightbox-close,
.ve3d-lightbox-prev,
.ve3d-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    opacity: 0.9;
}

.ve3d-lightbox-close { top: 18px; right: 18px; font-size: 30px; line-height: 42px; }
.ve3d-lightbox-prev { left: 18px; }
.ve3d-lightbox-next { right: 18px; }

.ve3d-lightbox-close:hover,
.ve3d-lightbox-prev:hover,
.ve3d-lightbox-next:hover {
    opacity: 1;
    border-color: rgba(255,0,50,0.45);
}

@media (max-width: 720px) {
    .gallery-shell { padding-top: 120px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
    .ve3d-lightbox-prev { left: 10px; }
    .ve3d-lightbox-next { right: 10px; }
    .ve3d-lightbox-stage { width: min(94vw, 980px); height: min(82vh, 820px); gap: 0; }
    .ve3d-lightbox-side { display: none; }
    .ve3d-lightbox-main { max-width: 94%; }
}

/* =========================
   CONTACT SOCIAL ICONS
========================= */
.contact-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.contact-social .social-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.9;
    transition: transform 160ms ease, opacity 160ms ease;
}

.contact-social .social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.contact-social .social-icon:hover {
    opacity: 1;
    transform: scale(1.08);
}

@media (max-width: 720px) {
    .contact-social {
        gap: 16px;
        margin-top: 18px;
    }
    .contact-social .social-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

/* =========================
   CONTACT SOCIAL ICONS (FINAL CLAMP)
   Ensures icons stay small and match the reference layout.
========================= */
.contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.contact-social .social-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 0.95;
    transform: none;
}

.contact-social .social-icon img {
    width: 32px !important;
    height: 32px !important;
    display: block;
}

.contact-social .social-icon:hover {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .contact-social {
        gap: 16px;
        margin-top: 18px;
    }
    .contact-social .social-icon,
    .contact-social .social-icon img {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }
}


/* =========================
   CONTACT SOCIAL ICON POLISH
========================= */
.contact-socials {
    gap: 28px !important;
}

.contact-socials a {
    text-decoration: none !important;
    outline: none !important;
}

.contact-socials a:focus,
.contact-socials a:active,
.contact-socials a:hover {
    outline: none !important;
    box-shadow: none !important;
}

.contact-socials img {
    border: none !important;
}


/* Videos disabled in gallery */
.gallery-item[data-type="video"],
.gallery-item[data-type='video'],
.gallery-item.is-video,
.gallery-video-thumb {
  display: none !important;
}


/* Gallery: videos disabled */
.gallery-item[data-type="video"],
.gallery-item[data-type='video'],
.gallery-grid video,
.ve3d-lightbox video { display:none !important; }
