/**
 * Lift 'N Move - Gallery Plugin Styles
 * Primary Color: #C62128
 * Background: #010101
 */

:root {
    --color-primary: #C62128;
    --color-white: #FFFFFF;
    --color-background: #010101;
    --color-gray: #666666;
    --font-header: 'BIG BLACK BEAR', 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Migra', 'Montserrat', 'Arial', sans-serif;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.lnm-gallery-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #010101;
    display: block;
    position: relative;
    overflow: visible;
}

.lnm-gallery-container * {
    box-sizing: border-box;
}

.lnm-gallery-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 80px 40px;
}

/* ============================================
   MAIN HEADER (Top Section)
   ============================================ */

.lnm-main-header {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.lnm-header-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 30px;
}

.lnm-header-hero {
    font-family: var(--font-header);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.lnm-hero-line-white {
    display: block;
    color: var(--color-white);
    font-style: italic;
}

.lnm-hero-line-red {
    display: block;
    color: var(--color-primary);
    font-style: italic;
}

.lnm-header-description {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 0;
}

/* ============================================
   JIGSAW GRID LAYOUT
   ============================================ */

.lnm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 250px);
    gap: 20px;
}

.lnm-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lnm-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(198, 33, 40, 0.5);
    z-index: 10;
}

.lnm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lnm-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(198, 33, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lnm-gallery-item:hover .lnm-gallery-overlay {
    opacity: 1;
}

.lnm-gallery-icon {
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

/* ============================================
   JIGSAW PATTERN - ITEM POSITIONS
   ============================================ */

/* Pattern 1: 6-12 images - Mixed sizes */
.lnm-gallery-item-1 { grid-area: 1 / 1 / 3 / 3; } /* Large */
.lnm-gallery-item-2 { grid-area: 1 / 3 / 2 / 5; } /* Medium */
.lnm-gallery-item-3 { grid-area: 1 / 5 / 3 / 7; } /* Large */
.lnm-gallery-item-4 { grid-area: 2 / 3 / 3 / 5; } /* Medium */
.lnm-gallery-item-5 { grid-area: 3 / 1 / 4 / 3; } /* Medium */
.lnm-gallery-item-6 { grid-area: 3 / 3 / 5 / 5; } /* Large */
.lnm-gallery-item-7 { grid-area: 3 / 5 / 4 / 6; } /* Small */
.lnm-gallery-item-8 { grid-area: 3 / 6 / 4 / 7; } /* Small */
.lnm-gallery-item-9 { grid-area: 4 / 1 / 5 / 2; } /* Small */
.lnm-gallery-item-10 { grid-area: 4 / 2 / 5 / 3; } /* Small */
.lnm-gallery-item-11 { grid-area: 4 / 5 / 5 / 6; } /* Small */
.lnm-gallery-item-12 { grid-area: 4 / 6 / 5 / 7; } /* Small */

/* ============================================
   LIGHTBOX MODAL
   ============================================ */

.lnm-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.lnm-gallery-modal.active {
    display: block;
}

.lnm-gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 1, 0.95);
    cursor: pointer;
}

.lnm-gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.lnm-gallery-modal-inner {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.lnm-gallery-modal-image-container {
    position: relative;
    width: 100%;
    max-height: 80vh;
}

.lnm-gallery-modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.lnm-gallery-modal-info {
    color: #fff;
    padding: 20px;
}

.lnm-gallery-modal-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: #C62128;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.lnm-gallery-modal-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #fff;
    margin: 0 0 30px 0;
}

.lnm-gallery-modal-counter {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Close Button */
.lnm-gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #C62128;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
}

.lnm-gallery-modal-close:hover {
    background: #fff;
    color: #C62128;
    transform: rotate(90deg);
}

/* Navigation Arrows */
.lnm-gallery-modal-prev,
.lnm-gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(198, 33, 40, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.lnm-gallery-modal-prev:hover,
.lnm-gallery-modal-next:hover {
    background: #fff;
    color: #C62128;
}

.lnm-gallery-modal-prev {
    left: 20px;
}

.lnm-gallery-modal-next {
    right: 20px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .lnm-gallery-inner {
        padding: 60px 30px;
    }

    .lnm-header-hero {
        font-size: 56px;
    }

    .lnm-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 200px);
        gap: 15px;
    }

    /* Tablet pattern */
    .lnm-gallery-item-1 { grid-area: 1 / 1 / 3 / 3; }
    .lnm-gallery-item-2 { grid-area: 1 / 3 / 2 / 5; }
    .lnm-gallery-item-3 { grid-area: 2 / 3 / 3 / 5; }
    .lnm-gallery-item-4 { grid-area: 3 / 1 / 4 / 2; }
    .lnm-gallery-item-5 { grid-area: 3 / 2 / 5 / 4; }
    .lnm-gallery-item-6 { grid-area: 3 / 4 / 5 / 5; }
    .lnm-gallery-item-7 { grid-area: 4 / 1 / 5 / 2; }
    .lnm-gallery-item-8 { grid-area: 5 / 1 / 7 / 3; }
    .lnm-gallery-item-9 { grid-area: 5 / 3 / 6 / 4; }
    .lnm-gallery-item-10 { grid-area: 5 / 4 / 6 / 5; }
    .lnm-gallery-item-11 { grid-area: 6 / 3 / 7 / 4; }
    .lnm-gallery-item-12 { grid-area: 6 / 4 / 7 / 5; }

    .lnm-gallery-modal-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lnm-gallery-modal-info h3 {
        font-size: 24px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .lnm-gallery-inner {
        padding: 40px 20px;
    }

    .lnm-main-header {
        margin-bottom: 40px;
    }

    .lnm-header-label {
        font-size: 10px;
        padding: 6px 16px;
    }

    .lnm-header-hero {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .lnm-header-description {
        font-size: 16px;
    }

    .lnm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 150px);
        gap: 10px;
    }

    /* Mobile pattern - simpler */
    .lnm-gallery-item-1 { grid-area: 1 / 1 / 3 / 3; }
    .lnm-gallery-item-2 { grid-area: 3 / 1 / 4 / 2; }
    .lnm-gallery-item-3 { grid-area: 3 / 2 / 4 / 3; }
    .lnm-gallery-item-4 { grid-area: 4 / 1 / 6 / 2; }
    .lnm-gallery-item-5 { grid-area: 4 / 2 / 5 / 3; }
    .lnm-gallery-item-6 { grid-area: 5 / 2 / 6 / 3; }
    .lnm-gallery-item-7 { grid-area: 6 / 1 / 7 / 2; }
    .lnm-gallery-item-8 { grid-area: 6 / 2 / 8 / 3; }
    .lnm-gallery-item-9 { grid-area: 7 / 1 / 8 / 2; }
    .lnm-gallery-item-10 { grid-area: 8 / 1 / 9 / 2; }
    .lnm-gallery-item-11 { grid-area: 8 / 2 / 9 / 3; }
    .lnm-gallery-item-12 { grid-area: 9 / 1 / 10 / 3; }

    .lnm-gallery-modal-content {
        padding: 80px 15px 20px;
    }

    .lnm-gallery-modal-info {
        padding: 10px;
    }

    .lnm-gallery-modal-info h3 {
        font-size: 20px;
    }

    .lnm-gallery-modal-info p {
        font-size: 14px;
    }

    .lnm-gallery-modal-prev,
    .lnm-gallery-modal-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lnm-gallery-modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .lnm-header-hero {
        font-size: 32px;
    }

    .lnm-header-description {
        font-size: 15px;
    }
}
