/* =========================================================
   Animated Gallery – Layout Container
   ========================================================= */
/* =========================================================
   Animated Gallery – Premium Background Container
   ========================================================= */
.animated-gallery-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 0;
    background: radial-gradient(80% 60% at 50% 20%, rgba(59, 130, 246, 0.12), transparent 60%), linear-gradient(180deg, #04071194 0%, /* deep navy */ #000000ad 50%, /* charcoal */ #000000c9 100% /* near-black */);
}
.animated-gallery-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.04),
            rgba(0, 0, 0, 0.35)
        );
    pointer-events: none;
    z-index: 0;
}


/* =========================================================
   Gallery Wrapper
   ========================================================= */
.animated-gallery {
    /* gap: 10px; */
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    margin: auto;
    overflow: hidden;
    z-index: 1;
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
}

/* =========================================================
   Gallery Window & Track
   ========================================================= */
.animated-gallery-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-gallery-track {
    display: flex;
    width: 100%;
    height: 80vh;
    transition: transform 1s ease-in-out;
}

/* =========================================================
   Individual Gallery Items
   ========================================================= */
.gallery-item {
    flex: 0 0 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.gallery-item img {
    /* background-size: contain; */
    border-radius: 20px;
/*     opacity: 0.8; */
    width: 100%;
    height: auto;
    object-fit: scale-down;
}

.gallery-item h3 {
    top: 10px;
    position: relative;
    /* font-size: 1.5em; */
    /* font-weight: bold; */
    color: #767286;
    text-shadow: 2px 2px 4px #000000;
}

.gallery-item p {
    top: 15px;
    position: relative;
    font-size: 12px;
    color: #767286;
    text-shadow: 2px 2px 4px #000000;
}

/* =========================================================
   Navigation Arrows
   ========================================================= */
.animated-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 9;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.animated-left-arrow {
    left: 10px;
}

.animated-right-arrow {
    right: 10px;
}

/* =========================================================
   Pagination Dots
   ========================================================= */
.animated-pagination-dots {
    text-align: center;
    margin-top: 30px;
}

.animated-pagination-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #cccccc;
    border-radius: 50%;
    cursor: pointer;
}

.animated-pagination-dot.active {
    background-color: #333333;
}

/* =========================================================
   CTA Button – "Read More"
   ========================================================= */
.btn-gallery {
    top: 40px;
    position: relative;
    width: 120px;
    height: 40px;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: none;
    /* background: linear-gradient(90deg, #000000, #ff0000); */
    border-radius: 5px;
    overflow: hidden;
    /* box-shadow: 0 4px 10px rgba(0, 230, 255, 0.4),
        0 0 20px rgba(0, 122, 204, 0.6); */
    transition: background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}


/* Button Text Layer */
.btn-gallery span {
    position: relative;
    z-index: 2;
}


.btn-gallery:active {
    transform: scale(0.98);
    box-shadow:
        0 4px 10px rgba(0, 230, 255, 0.4),
        0 0 15px rgba(0, 122, 204, 0.5);
}

.btn-gallery:focus {
    outline: 3px solid rgba(0, 230, 255, 0.8);
    outline-offset: 4px;
}



/* FORCE VIDEO OUT OF LAYOUT FLOW */
video.scene-bg {
  position: fixed;          /* <-- THIS IS THE KEY */
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  object-fit: cover;

  z-index: -1;              /* behind everything */
  pointer-events: none;

  background: black;
}
