/* Gallery Modal Structure */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s forwards;
}

.gallery-modal.show {
    display: block;
}

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

/* Swiper Container */
.gallery-swiper {
    width: 100%;
    height: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

.gallery-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-swiper .swiper-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    user-select: none;
}

/* UI Elements */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    line-height: 40px;
    font-weight: 300;
    z-index: 10002;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 10001;
    display: none;
}

.gallery-swiper .swiper-pagination {
    color: #fff;
    font-size: 14px;
    top: 20px;
    bottom: auto;
    letter-spacing: 2px;
}

/* Navigation Arrows */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background-image: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10010;
    cursor: pointer;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    font-family: inherit;
    font-size: 0;
}

.gallery-swiper .swiper-button-next::after {
    transform: rotate(45deg);
    margin-left: -4px;
}

.gallery-swiper .swiper-button-prev::after {
    transform: rotate(-135deg);
    margin-right: -4px;
}

/* Page Specific Styles (Extracted from HTML) */
.case-title-wrapper {
    width: 100%;
    border-left: 5px solid #0056b3;
    padding-left: 15px;
}

.case-title {
    color: #333;
    margin: 0;
}

.case-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }

    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.3);
    }

    .gallery-swiper .swiper-button-next::after,
    .gallery-swiper .swiper-button-prev::after {
        width: 8px;
        height: 8px;
        border-width: 2px;
    }
    
    .gallery-swiper .swiper-pagination {
         top: 15px;
         font-size: 12px;
    }
}