/* gala-animation.css — Deep scan visualization for gala looks */

.gala-scanning-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #111;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Layer 1: Base Image - Grayscale & Overexposed */
.gala-scan-image.base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(100%) brightness(1.7) contrast(0.6);
    z-index: 1;
}

/* Layer 2: Reveal Image - Full Color */
.gala-scan-image.reveal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* Initial state: hidden */
    clip-path: inset(0 100% 0 0);
}

/* 
  Scan Cycle: 
  Logic moved to js/gala-anim.js for precise glitch control (pausing, zooming, flashing).
*/

/* Initial state for reveal image */
.gala-scan-image.reveal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* Default hidden state, controlled by JS clip-path */
    clip-path: inset(0 100% 0 0);
    will-change: clip-path, filter;
    transition: filter 0.1s ease-in-out;
}

/* Text Overlay */
.gala-text-overlay {
    position: absolute;
    inset: 0;
    /* Cover full container to allow placement anywhere */
    z-index: 30;
    pointer-events: none;
    overflow: hidden;
}

.slang-text {
    position: absolute;
    /* Default positioning, will be overridden by JS */
    top: 20%;
    left: 50%;
    transform: translateX(-50%);

    font-family: var(--font-heading, "Arial Black");
    font-weight: 800;
    font-size: 2rem;
    /* Will be randomized */
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.03em;
    opacity: 0;
    white-space: nowrap;
    /* Reverted wrapping/width constraints */

    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gala-generating {
    position: relative;
    width: 100%;
    /* Ensure the container defines the coordinate context */
}

.gala-text-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    overflow: visible;
    /* Allow text to bleed out */
}

.slang-text.active {
    opacity: 1;
}

/* Optional: Add a glowing edge to the slice if possible. 
   Since we using clip-path on the image, we can't easily add a border to the clipped area directly.
   We can simulate it with a separate element if needed, but for "reveal" this might be enough.
   Let's keep it clean for now as requested: "thick line that reveal".
*/