/* =========================================
   1. MAIN LAYOUT ENGINE
========================================= */
.auraview-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* Left Main Area */
.auraview-main-wrapper {
    position: relative;
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auraview-main-viewport {
    position: relative;
    width: 100%;
    cursor: none !important;
    overflow: hidden;
}

.auraview-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Fluid Mouse-Tracking Plus Icon */
.auraview-hover-plus {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(180, 180, 180, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* Crucial: allows mouse events to pass through to the viewport */
    transform: translate(-50%, -50%) scale(0.5); /* Start shrunk and centered on cursor */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.auraview-hover-plus svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* Changed from a strict hover state to a dynamic JS-controlled class */
.auraview-hover-plus.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Bottom Magnifying Tool */
.auraview-zoom-trigger {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    background: #f7f7f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auraview-zoom-trigger:hover {
    background: #eaeaea;
}

.auraview-zoom-trigger svg {
    width: 18px;
    height: 18px;
    fill: #666;
}

/* =========================================
   2. RIGHT THUMBNAILS (DESKTOP)
========================================= */
.auraview-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 110px);
    gap: 24px; /* Prevents thumbnails from sticking together */
    margin-left: 30px; /* Gives breathing room from the main image */
}

.auraview-thumb {
    width: 110px;
    height: 110px;
    border: none;
    padding: 6px;
    cursor: pointer;
    background: #e8e8e8;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auraview-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auraview-thumb:hover, .auraview-thumb.active {
    opacity: 1;
    border: none !important;
    background: #e8e8e8;
}

/* =========================================
   3. MOBILE DOT NAVIGATION (HIDDEN ON DESKTOP)
========================================= */
.auraview-main-dots {
    display: none; /* Hidden by default, shown via media query */
    gap: 14px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.auraview-main-dot {
    width: 7px;
    height: 7px;
    background: #000000;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s, transform 0.3s;
}

.auraview-main-dot.active {
    background: transparent;
    border: 2px solid #000000;
    transform: scale(1.2);
}


/* =========================================
   4. FULLSCREEN MODAL VIEWPORT
========================================= */
.auraview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.auraview-modal.open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Slider Container (Forced Horizontal) */
.auraview-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh; 
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.auraview-modal-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    height: 100%;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.auraview-modal-slide {
    min-width: 100%;
    flex: 0 0 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auraview-modal-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Modal Close Icon */
.auraview-modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #f9f9f9;
    border-radius: 50%;
    border: none;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    color: #111;
}

.auraview-modal-close:hover {
    background: #ebebeb;
}

/* Modal Arrows */
.auraview-modal-arrow {
    position: absolute;
    bottom: 50px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    border: none;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, opacity 0.3s ease;
    color: #111;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Prevent arrows from turning dark upon click focus */
.auraview-modal-arrow:focus,
.auraview-modal-arrow:active,
.auraview-modal-arrow:focus:hover {
    background: #ffffff !important;
    color: #111111 !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.auraview-modal-arrow:hover {
    background: #cccccc !important;
    color: #ffffff !important; /* White arrow */
}

.auraview-modal-arrow.next-arrow {
    right: 60px;
}

.auraview-modal-arrow.prev-arrow {
    left: 60px;
    opacity: 0;
    pointer-events: none; /* Hidden by default at start */
}

.auraview-modal-arrow.prev-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Dots */
.auraview-modal-dots {
    position: absolute;
    bottom: 75px;
    display: flex;
    gap: 16px;
}

.auraview-dot {
    width: 7px;
    height: 7px;
    background: #000000; 
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s, transform 0.3s;
}

.auraview-dot.active {
    background: transparent;
    border: 1.5px solid #000000;
    transform: scale(1.2);
}

/* =========================================
   5. RESPONSIVENESS
========================================= */
@media (max-width: 768px) {
    .auraview-container { flex-direction: column; gap: 10px; }
    
    /* Swap Thumbnails for Dots */
    .auraview-thumbnails { display: none !important; }
    .auraview-main-dots { display: flex; }
    
    /* Adjust Modal controls for smaller screens */
    .auraview-modal-arrow.next-arrow { right: 20px; bottom: 20px; }
    .auraview-modal-arrow.prev-arrow { left: 20px; bottom: 20px; }
    .auraview-modal-dots { bottom: 100px; }
    .auraview-modal-close { top: 20px; right: 20px; width: 45px; height: 45px; }
}