:root {
    --bg-color: #0f0f1b;
    --text-color: #e0e0e0;
    --primary-color: #d32f2f;
    --primary-hover: #b71c1c;
    --secondary-color: #388e3c;
    --secondary-hover: #2e7d32;
    --panel-bg: #1e1e2f;
    --border-color: #4a4a6a;
    --accent-color: #ffd54f;
    --font-main: 'VT323', monospace;
    --font-title: 'Press Start 2P', cursive;
    --hp-bar-bg: #333;
    --hp-bar-fill: #d32f2f;
    
    /* Monster Colors */
    --monster-goblin: #4caf50;
    --monster-beastfolk: #ff9800;
    --monster-mage: #9c27b0;
    --monster-dragon: #f44336;
    --monster-demon: #212121;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 20px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-title);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #aaa;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: var(--font-title);
    font-size: 1rem;
    padding: 15px 30px;
    border: 4px solid var(--border-color);
    background-color: var(--panel-bg);
    color: var(--text-color);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px #000;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn {
    background-color: var(--primary-color);
    border-color: #ff5252;
}

.primary-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: var(--secondary-color);
    border-color: #66bb6a;
}

.secondary-btn:hover:not(:disabled) {
    background-color: var(--secondary-hover);
}

.btn-full {
    width: 100%;
}

.mt-4 {
    margin-top: 40px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--panel-bg);
    border: 6px solid var(--border-color);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 8px 8px 0px #000;
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-align: center;
}

.modal-content ol {
    margin: 20px 0 20px 30px;
    font-size: 1.2rem;
}

.modal-content li {
    margin-bottom: 10px;
}

.modal-note {
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
}

/* Debate Screen Layout */
.debate-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.debate-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-title);
    font-size: 0.9rem;
    padding: 10px;
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
}

.hp-section {
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    padding: 15px;
}

.hp-label {
    font-family: var(--font-title);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.hp-bar-container {
    width: 100%;
    height: 24px;
    background-color: var(--hp-bar-bg);
    border: 2px solid #000;
    position: relative;
}

.hp-bar-fill {
    height: 100%;
    background-color: var(--hp-bar-fill);
    width: 100%;
    transition: width 0.5s ease-out;
}

.visual-topic-section {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.monster-display {
    flex: 0 0 200px;
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- PIXEL ART MONSTER ARCHITECTURE --- */
.monster-visual {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: monsterIdle 3s infinite ease-in-out;
}

@keyframes monsterIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Universal Base Styles */
.monster-visual > div {
    position: absolute;
}

.monster-visual div {
    /* Enforce hard edges for pixel art */
    box-sizing: border-box;
}

/* Default Display Rules (Hidden unless specific monster) */
.m-wings, .m-tail, .m-staff, .m-crown, .m-aura, .m-horns, .m-hood, .m-snout {
    display: none;
}

.m-shadow {
    width: 100px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    bottom: -10px;
    z-index: 1;
}

.m-body {
    position: absolute;
    bottom: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-legs {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 2;
}

.m-leg {
    border: 4px solid #000;
}

.m-arm {
    position: absolute;
    border: 4px solid #000;
}

.m-head {
    position: relative;
    border: 4px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.m-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.m-eyes {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.m-eye {
    background: #000;
}

/* =======================================
   1. GOBLIN (0.7x scale)
   ======================================= */
.goblin .m-body {
    width: 60px;
    height: 50px;
    background: #795548; /* Brown tunic */
    border: 4px solid #000;
    transform: scale(0.7);
    transform-origin: bottom center;
}

.goblin .m-head {
    width: 80px;
    height: 70px;
    background: #4caf50; /* Green skin */
    top: -50px;
}

.goblin .m-ears {
    position: absolute;
    width: 140px;
    top: 20px;
    display: flex;
    justify-content: space-between;
    left: -34px;
    z-index: -1;
}

.goblin .m-ear {
    width: 30px;
    height: 15px;
    background: #4caf50;
    border: 4px solid #000;
}
.goblin .m-ear.left { transform: rotate(-20deg); border-right: none; }
.goblin .m-ear.right { transform: rotate(20deg); border-left: none; }

.goblin .m-eyes { top: 15px; gap: 20px; }
.goblin .m-eye { width: 15px; height: 15px; background: #fff; position: relative; border: 4px solid #000;}
.goblin .m-eye::after { content: ''; position: absolute; width: 6px; height: 6px; background: #000; top: 2px; right: 2px; }

.goblin .m-nose {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #388e3c;
    border: 2px solid #000;
    top: 35px;
    left: 31px;
}

.goblin .m-mouth {
    position: absolute;
    width: 30px;
    height: 15px;
    background: #000;
    top: 50px;
    left: 21px;
    border-radius: 0 0 15px 15px;
}
.goblin .m-tooth {
    position: absolute; width: 6px; height: 6px; background: #fff; top: 0; left: 5px;
}

.goblin .m-arm { width: 15px; height: 35px; background: #4caf50; top: 10px; }
.goblin .m-arm.left { left: -19px; transform: rotate(20deg); }
.goblin .m-arm.right { right: -19px; transform: rotate(-20deg); }

.goblin .m-legs { gap: 10px; bottom: 0px; transform: scale(0.7); transform-origin: bottom center; }
.goblin .m-leg { width: 15px; height: 25px; background: #4caf50; }


/* =======================================
   2. BEASTFOLK (0.85x scale)
   ======================================= */
.beastfolk .m-body {
    width: 60px;
    height: 70px;
    background: #37474f; /* Vest */
    border: 4px solid #000;
    transform: scale(0.85);
    transform-origin: bottom center;
}

.beastfolk .m-head {
    width: 60px;
    height: 55px;
    background: #ef6c00; /* Fox fur */
    top: -45px;
    border-radius: 10px 10px 0 0;
}

.beastfolk .m-snout {
    display: block;
    position: absolute;
    width: 30px;
    height: 20px;
    background: #e65100;
    border: 4px solid #000;
    bottom: -10px;
    left: 11px;
    border-radius: 0 0 10px 10px;
}

.beastfolk .m-nose {
    position: absolute; width: 10px; height: 8px; background: #000; bottom: -5px; left: 21px; z-index: 5;
}

.beastfolk .m-ears {
    position: absolute; width: 80px; top: -15px; left: -14px; display: flex; justify-content: space-between; z-index: -1;
}
.beastfolk .m-ear { width: 25px; height: 30px; background: #ef6c00; border: 4px solid #000; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.beastfolk .m-eyes { top: 15px; gap: 15px; }
.beastfolk .m-eye { width: 10px; height: 10px; background: #000; }
.beastfolk .m-eye::before { content: ''; position: absolute; width: 4px; height: 4px; background: #fff; top: 1px; left: 1px; }

.beastfolk .m-arm { width: 16px; height: 45px; background: #ef6c00; top: 10px; }
.beastfolk .m-arm.left { left: -20px; }
.beastfolk .m-arm.right { right: -20px; }

.beastfolk .m-legs { gap: 15px; bottom: 0px; transform: scale(0.85); transform-origin: bottom center; }
.beastfolk .m-leg { width: 16px; height: 35px; background: #ef6c00; }


/* =======================================
   3. MAGE (0.9x scale)
   ======================================= */
.mage .m-staff {
    display: block; position: absolute; width: 8px; height: 120px; background: #5d4037;
    border: 3px solid #000; left: -30px; top: -20px; z-index: 5;
}
.mage .m-staff::before {
    content: ''; position: absolute; width: 20px; height: 20px; background: #00bcd4;
    border: 3px solid #000; top: -20px; left: -9px; transform: rotate(45deg);
    box-shadow: 0 0 10px #00bcd4;
}

.mage .m-body {
    width: 70px; height: 90px; background: #311b92; border: 4px solid #000;
    transform: scale(0.9); transform-origin: bottom center; border-radius: 20px 20px 0 0;
}

.mage .m-head {
    width: 60px; height: 60px; background: #111; top: -50px; border: none; border-radius: 50%;
}

.mage .m-hood {
    display: block; position: absolute; width: 70px; height: 70px; background: #4527a0;
    border: 4px solid #000; top: -5px; left: -5px; border-radius: 35px 35px 0 0; z-index: -1;
}

.mage .m-eyes { top: 25px; gap: 15px; }
.mage .m-eye { width: 12px; height: 6px; background: #00bcd4; border: none; box-shadow: 0 0 8px #00bcd4; border-radius: 50%; }

.mage .m-arm { width: 20px; height: 50px; background: #4527a0; top: 10px; }
.mage .m-arm.left { left: -24px; transform: rotate(15deg); }
.mage .m-arm.right { right: -24px; transform: rotate(-15deg); }

.mage .m-legs { display: none; } /* Robe covers legs */


/* =======================================
   4. DRAGON (1.2x scale)
   ======================================= */
.dragon .m-wings { display: flex; position: absolute; width: 220px; top: 20px; left: -10px; justify-content: space-between; z-index: 1; }
.dragon .m-wing { width: 90px; height: 80px; background: #b71c1c; border: 4px solid #000; border-radius: 0 50px 0 50px; }
.dragon .m-wing.left { transform: rotate(-20deg); }
.dragon .m-wing.right { transform: rotate(20deg) scaleX(-1); }

.dragon .m-tail { display: block; position: absolute; width: 80px; height: 20px; background: #c62828; border: 4px solid #000; bottom: 30px; right: -40px; border-radius: 0 20px 20px 0; z-index: 1; transform: rotate(-15deg); }

.dragon .m-body {
    width: 100px; height: 80px; background: #c62828; border: 4px solid #000;
    transform: scale(1.2); transform-origin: bottom center; border-radius: 20px; z-index: 3;
}

.dragon .m-head {
    width: 60px; height: 50px; background: #c62828; top: -40px; border-radius: 10px;
}

.dragon .m-horns { display: flex; position: absolute; width: 80px; top: -20px; left: -14px; justify-content: space-between; z-index: -1; }
.dragon .m-horn { width: 15px; height: 30px; background: #ffd54f; border: 4px solid #000; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dragon .m-horn.left { transform: rotate(-30deg); }
.dragon .m-horn.right { transform: rotate(30deg); }

.dragon .m-snout {
    display: block; position: absolute; width: 40px; height: 25px; background: #d32f2f;
    border: 4px solid #000; top: 20px; left: 6px; border-radius: 5px;
}
.dragon .m-nose { position: absolute; width: 6px; height: 6px; background: #000; top: 25px; left: 30px; z-index: 5; }
.dragon .m-mouth { position: absolute; width: 30px; height: 8px; background: #000; top: 40px; left: 11px; z-index: 5; }
.dragon .m-tooth { position: absolute; width: 4px; height: 6px; background: #fff; top: 0px; left: 5px; }

.dragon .m-eyes { top: 10px; gap: 20px; }
.dragon .m-eye { width: 12px; height: 8px; background: #ffeb3b; border: 2px solid #000; }
.dragon .m-eye::after { content: ''; position: absolute; width: 4px; height: 8px; background: #000; top: -2px; left: 2px; }

.dragon .m-arm { width: 20px; height: 40px; background: #c62828; top: 20px; }
.dragon .m-arm.left { left: -20px; transform: rotate(30deg); }
.dragon .m-arm.right { right: -20px; transform: rotate(-30deg); }

.dragon .m-legs { gap: 40px; bottom: 0px; transform: scale(1.2); transform-origin: bottom center; }
.dragon .m-leg { width: 25px; height: 30px; background: #b71c1c; }


/* =======================================
   5. DEMON KING (1.1x scale)
   ======================================= */
.demon-king .m-aura {
    display: block; position: absolute; width: 150px; height: 180px;
    background: transparent; bottom: 0; box-shadow: 0 0 40px 10px #d500f9;
    z-index: 0; opacity: 0.6; animation: demonAura 2s infinite alternate;
}
@keyframes demonAura { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.8; transform: scale(1.05); } }

.demon-king .m-body {
    width: 80px; height: 100px; background: #212121; border: 4px solid #000;
    transform: scale(1.1); transform-origin: bottom center; border-radius: 10px 10px 0 0;
}

.demon-king .m-head { width: 50px; height: 60px; background: #424242; top: -50px; }

.demon-king .m-crown {
    display: block; position: absolute; width: 60px; height: 20px; background: #ffb300;
    border: 4px solid #000; top: -25px; left: -9px;
    clip-path: polygon(0 0, 20% 50%, 50% 0, 80% 50%, 100% 0, 100% 100%, 0 100%);
}

.demon-king .m-horns { display: flex; position: absolute; width: 100px; top: 10px; left: -29px; justify-content: space-between; z-index: -1; }
.demon-king .m-horn { width: 20px; height: 40px; background: #e0e0e0; border: 4px solid #000; border-radius: 50% 50% 0 0; }
.demon-king .m-horn.left { transform: rotate(-45deg); }
.demon-king .m-horn.right { transform: rotate(45deg); }

.demon-king .m-eyes { top: 20px; gap: 10px; }
.demon-king .m-eye { width: 14px; height: 6px; background: #f44336; border: none; box-shadow: 0 0 5px #f44336; }

.demon-king .m-arm { width: 25px; height: 60px; background: #212121; top: 10px; border-radius: 10px; }
.demon-king .m-arm.left { left: -29px; }
.demon-king .m-arm.right { right: -29px; }

.demon-king .m-legs { gap: 20px; bottom: 0px; transform: scale(1.1); transform-origin: bottom center; }
.demon-king .m-leg { width: 20px; height: 40px; background: #212121; }

.monster-name {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--accent-color);
}

.current-topic-box {
    flex: 1;
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.monster-dialogue p {
    font-size: 1.5rem;
    font-style: italic;
}

.section-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.player-input-section {
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    padding: 15px;
}

textarea {
    width: 100%;
    background: #111;
    color: var(--text-color);
    border: 2px solid #555;
    padding: 15px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    resize: vertical;
    margin-bottom: 15px;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.feedback-section {
    background: #1a237e;
    border: 4px solid #3949ab;
    padding: 15px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-title);
    font-size: 0.7rem;
}

.feedback-text {
    font-size: 1.2rem;
    line-height: 1.4;
}

.history-section {
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    padding: 15px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.history-content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.history-content::-webkit-scrollbar {
    width: 10px;
}
.history-content::-webkit-scrollbar-track {
    background: #111;
}
.history-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.history-item {
    padding: 15px;
    border-left: 4px solid;
    background: rgba(0,0,0,0.2);
}

.history-item.monster {
    border-left-color: var(--primary-color);
}

.history-item.player {
    border-left-color: var(--secondary-color);
    background: rgba(255,255,255,0.05);
}

.history-speaker {
    font-family: var(--font-title);
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.history-text {
    font-size: 1.2rem;
}

/* Loading overlays */
.loading-overlay, .global-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.global-loading {
    position: fixed;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    font-family: var(--font-title);
    line-height: 1.5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid var(--panel-bg);
    border-top: 6px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result screens */
.result-card {
    background: var(--panel-bg);
    border: 6px solid var(--border-color);
    padding: 30px;
    max-width: 800px;
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.result-card h2 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
}

.feedback-block {
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-left: 4px solid var(--accent-color);
}

.feedback-block h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Hero Ending */
.hero-title {
    color: var(--accent-color);
    font-size: 3rem;
}

.hero-subtitle {
    color: #fff;
    margin-bottom: 40px;
}

.journey-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-title);
    margin-bottom: 40px;
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.check-item {
    display: flex;
    justify-content: space-between;
}

.check-mark {
    color: var(--secondary-color);
}

.final-score-box {
    text-align: center;
    margin-bottom: 30px;
}

.final-score {
    font-size: 4rem;
    color: var(--accent-color);
    margin-top: 10px;
}

.hero-message {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 30px;
    font-style: italic;
    color: #ccc;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #b71c1c;
    color: white;
    padding: 15px 30px;
    border: 4px solid #fff;
    font-family: var(--font-title);
    font-size: 0.8rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 4px 4px 0px #000;
}

.btn-close-toast {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-title);
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .tagline { font-size: 1.2rem; }
    
    .visual-topic-section {
        flex-direction: column;
    }
    
    .monster-display {
        flex: none;
        flex-direction: row;
        gap: 20px;
    }
    
    .monster-visual {
        width: 60px; height: 60px; margin-bottom: 0;
    }
    
    .score-grid {
        grid-template-columns: 1fr;
    }
}

/* Monster Gallery */
.gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

.gallery-container::-webkit-scrollbar {
    width: 10px;
}
.gallery-container::-webkit-scrollbar-track {
    background: #111;
}
.gallery-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.gallery-card {
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    text-align: left;
    align-items: center;
}

.gallery-visual-wrapper {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 4px solid #111;
    padding: 10px;
}

.gallery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.gallery-meta {
    font-size: 1.1rem;
    color: #bbb;
}

.gallery-personality {
    font-size: 1rem;
    color: #ddd;
    font-style: italic;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-left: 4px solid var(--secondary-color);
}

@media (max-width: 768px) {
    .gallery-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .gallery-visual-wrapper {
        flex: none;
        width: 100%;
    }
}
