/* ===================================
   LIQUID RENOVATIONS POOL GALLERY
   Frontend Gallery Styles
   =================================== */

/* Gallery Button */
.lr-pool-gallery-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.lr-gallery-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.lr-gallery-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    background: linear-gradient(135deg, #005177 0%, #003a54 100%);
}

.lr-gallery-button:active {
    transform: translateY(0);
}

.lr-gallery-button .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Lightbox Overlay */
.lr-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lr-lightbox.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Lightbox Content */
.lr-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close Button */
.lr-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
    line-height: 1;
}

.lr-lightbox-close:hover,
.lr-lightbox-close:focus {
    color: #0073aa;
    transform: rotate(90deg);
}

/* Navigation Buttons */
.lr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 115, 170, 0.8);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s;
    border-radius: 4px;
}

.lr-nav:hover {
    background-color: rgba(0, 115, 170, 1);
    transform: translateY(-50%) scale(1.1);
}

.lr-prev {
    left: 20px;
}

.lr-next {
    right: 20px;
}

/* Image Container */
.lr-lightbox-image-container {
    max-width: 90%;
    max-height: 85vh;
    margin: 0 auto;
    position: relative;
}

.lr-lightbox-slide {
    display: none;
    animation: slideIn 0.4s ease;
}

.lr-lightbox-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lr-lightbox-slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Image Info */
.lr-lightbox-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lr-lightbox-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffffff;
}

.lr-lightbox-info p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

.lr-lightbox-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #b0b0b0;
}

.lr-lightbox-meta strong {
    color: #0073aa;
}

/* Counter */
.lr-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 115, 170, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lr-gallery-button {
        padding: 14px 28px;
        font-size: 16px;
    }

    .lr-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }

    .lr-nav {
        padding: 12px 16px;
        font-size: 20px;
    }

    .lr-prev {
        left: 10px;
    }

    .lr-next {
        right: 10px;
    }

    .lr-lightbox-slide img {
        max-height: 50vh;
    }

    .lr-lightbox-info {
        padding: 15px;
    }

    .lr-lightbox-info h3 {
        font-size: 20px;
    }

    .lr-lightbox-info p {
        font-size: 14px;
    }

    .lr-lightbox-meta {
        flex-direction: column;
        gap: 8px;
    }

    .lr-lightbox-counter {
        bottom: 15px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lr-gallery-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .lr-gallery-button .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .lr-lightbox-image-container {
        max-width: 95%;
    }

    .lr-nav {
        padding: 10px 12px;
        font-size: 18px;
    }
}

/* Keyboard Navigation Hint */
.lr-lightbox-content::after {
    content: 'Use ← → keys to navigate';
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .lr-lightbox-content::after {
        display: none;
    }
}
