/**
 * SimpleImageGallery Plugin CSS
 * (C) 2025 Andy Wunderlich - Joomla Upgrade Service. All rights reserved.
 */

/* Gallery container */
.simpleimagegallery-container {
    margin: 15px 0;
    position: relative;
}

/* Single image mode */
.simpleimagegallery-single {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.simpleimagegallery-single:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.simpleimagegallery-single img {
    display: block;
    max-width: 100%;
}

.simpleimagegallery-single .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simpleimagegallery-single:hover .gallery-overlay {
    opacity: 1;
}

/* Multiple images mode */
.simpleimagegallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.simpleimagegallery-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.simpleimagegallery-grid a:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.simpleimagegallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

/* Lightbox styles */
.simpleimagegallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.simpleimagegallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.simpleimagegallery-lightbox-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

/* Light theme */
.simpleimagegallery-lightbox.light .simpleimagegallery-lightbox-bg {
    background-color: rgba(250,250,250,0.9);
}

.simpleimagegallery-lightbox.light .lightbox-content {
    color: #333;
}

.simpleimagegallery-lightbox.light .lightbox-nav {
    color: #333;
}

.simpleimagegallery-lightbox.light .lightbox-close {
    color: #333;
}

/* Lightbox content */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    z-index: 10000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lightbox-description {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 4px;
}

.light .lightbox-description {
    background-color: rgba(230,230,230,0.7);
}

/* Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
} 