/* ============================================================
   MAV GALLERY – Public Styles  (mavgaluniq2)
   ============================================================ */

/* ---- GALLERY CARD ---- */
.mavgaluniq2-gallery {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.mavgaluniq2-main {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.mavgaluniq2-gallery:hover .mavgaluniq2-main {
    transform: scale(1.2);
}

/* ---- CAPTION ---- */
.mavgaluniq2-caption {
    position: absolute;
    bottom: 10px;
    left: 15px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 15px;
    pointer-events: none;
}

/* ---- HOVER EMBLEM / THUMB ---- */
.mavgaluniq2-thumb {
    position: absolute;
    bottom: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    opacity: 0.85;
    transition: bottom 0.6s ease;
    pointer-events: none;
}

.mavgaluniq2-gallery:hover .mavgaluniq2-thumb {
    bottom: 50%;
    transform: translate(-50%, 50%);
}

/* ---- LIGHTBOX ---- */
.mavgaluniq2-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    box-sizing: border-box;
}

.mavgaluniq2-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease;
}

/* ---- ARROWS ---- */
.mavgaluniq2-prev,
.mavgaluniq2-next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transform: translateY(-50%);
    transition: color 0.3s, background 0.3s;
    z-index: 1000001;
    border-radius: 4px;
    line-height: 1;
}

.mavgaluniq2-prev:hover,
.mavgaluniq2-next:hover {
    color: #279989;
    background: rgba(255, 255, 255, 0.08);
}

.mavgaluniq2-prev { left: 10px; }
.mavgaluniq2-next { right: 10px; }

/* ---- CLOSE ---- */
.mavgaluniq2-close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 38px;
    color: #fff;
    cursor: pointer;
    z-index: 1000002;
    line-height: 1;
    transition: color 0.3s;
}

.mavgaluniq2-close:hover { color: #279989; }

/* ---- COUNTER ---- */
.mavgaluniq2-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
    font-family: sans-serif;
    pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .mavgaluniq2-prev,
    .mavgaluniq2-next {
        font-size: 28px;
        padding: 10px;
    }

    .mavgaluniq2-close {
        font-size: 30px;
        top: 10px;
        right: 14px;
    }

    .mavgaluniq2-thumb {
        width: 100px;
        height: 100px;
        bottom: -130px;
    }

    .mavgaluniq2-caption {
        font-size: 13px;
        padding: 4px 9px;
    }
}

@media (max-width: 400px) {
    .mavgaluniq2-prev { left: 2px; }
    .mavgaluniq2-next { right: 2px; }
}
