
/* Base Gallery Styles */
.soft-photo-gallery {
    margin: 20px 0;
}

.gallery-search {
    margin-bottom: 20px;
}

.gallery-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Grid View */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.grid-view .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.grid-view .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Masonry View */
.masonry-view {
    column-count: 3;
    column-gap: 15px;
}

.masonry-view .gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
}

.masonry-view .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* List View */
.list-view .gallery-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.list-view .gallery-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.list-view .image-caption {
    flex: 1;
}

/* Slider Carousel */
.gallery-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
}

.slideshow-prev { left: 10px; }
.slideshow-next { right: 10px; }

/* Justified View */
.justified-view {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.justified-view .gallery-item {
    flex: 1 1 auto;
    min-width: 200px;
    position: relative;
}

.justified-view .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Spotlight View */
.spotlight-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spotlight-view .gallery-item:first-child {
    grid-column: 1 / -1;
}

.spotlight-view .gallery-item:first-child img {
    height: 400px;
}

.spotlight-view .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Hover Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.image-caption {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .image-caption {
    bottom: 0;
}

.social-sharing {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.social-sharing a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-pinterest { background: #bd081c; }

/* Responsive Design */
@media (max-width: 768px) {
    .masonry-view {
        column-count: 2;
    }
    
    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .list-view .gallery-item {
        flex-direction: column;
        text-align: center;
    }
    
    .list-view .gallery-item img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .spotlight-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .masonry-view {
        column-count: 1;
    }
    
    .grid-view {
        grid-template-columns: 1fr;
    }
}
