/* Showcase Gallery Styles */
.showcase-gallery-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.showcase-gallery-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}

.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    gap: 30px;
    justify-content: space-between;
}

.gallery-item {
    position: relative;
    width: 350px;
    max-width: 100%;
}

.gallery-link {
    display: block;
    position: relative;
    width: 350px;
    height: 350px;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-link:hover {
    transform: scale(1.02);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.gallery-item-info {
    margin-top: 15px;
}

.gallery-caption {
    font-size: 0.85rem !important;
    color: #333;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    opacity: 0.7;
}

.gallery-credit {
    font-size: 0.75rem !important;
    color: #666;
    margin: 0 !important;
    text-align: right;
    font-style: italic;
    opacity: 0.6;
}

/* Only credit without caption */
.gallery-item-info .gallery-credit:first-child {
    margin-top: 8px;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
}

.lightbox-caption {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.lightbox-credit {
    font-size: 0.9rem;
    font-style: italic;
    text-align: right;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
}

.lightbox-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .showcase-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-content: center;
    }

    .showcase-gallery-title {
        font-size: 1.75rem;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-link {
        width: 100%;
        height: 350px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px;
    }

    .lightbox-info {
        bottom: 20px;
        width: 95%;
    }
}

/* Load More Functionality */
.gallery-item-hidden {
    display: none;
}

.showcase-gallery-load-more {
    text-align: center;
    margin-top: 30px;
}

.showcase-gallery-load-more-button {
    background: none;
    border: 1px solid #0047BB;
    color: #0047BB;
    padding: 10px 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'BDO Grotesk', sans-serif;
    font-weight: 500;
}

.showcase-gallery-load-more-button:hover {
    background-color: #0047BB;
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .showcase-gallery-load-more-button {
        width: 100%;
    }
}