/* Gallery and Lightbox Styles - DubnCo */

/* Lightbox Styles */
.lightbox-trigger {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

.lightbox-trigger:hover .lightbox-overlay {
    opacity: 1;
}

.lightbox-text {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal Styles */
.lightbox-modal .modal-content {
    background: #000;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-modal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
}

.lightbox-image-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.lightbox-image-container img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

.lightbox-details {
    background: white;
    height: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.artwork-meta p {
    margin-bottom: 0.5rem;
}

.lightbox-actions {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* Gallery styles */
.gallery-filters {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 25px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Masonry-style gallery grid */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

/* Card Styles */
.artwork-card, .story-card {
    transition: all 0.3s ease;
    border: none;
    background-color: #fff;
}

.artwork-card:hover, .story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.artwork-card img {
    transition: transform 0.3s ease;
}

.artwork-card:hover img {
    transform: scale(1.05);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 70vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Story content styles */
.story-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.story-content h1, .story-content h2, .story-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
    
    .lightbox-modal .modal-dialog {
        max-width: 95%;
    }
    
    .lightbox-image-container {
        min-height: 300px;
        max-height: 50vh;
    }
    
    .lightbox-details {
        max-height: none;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
    
    .lightbox-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}