/* ============================================
   Gallery Page Styles
   ============================================ */

/* Gallery Section */
.gallery-section {
    background-color: #f8f9fa;
}

.gallery-section .section-title {
    margin-bottom: 40px;
}

.gallery-section .section-title h2 span {
    color: #ff6b35;
}

/* Gallery Filter Buttons */
.gallery-filter {
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.filter-btn.active {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Gallery Grid Container */
.gallery-grid-container {
    position: relative;
}

.gallery-item-wrapper {
    margin-bottom: 30px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Gallery Item Box */
.gallery-item-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 350px;
}

.gallery-item-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-box:hover img {
    transform: scale(1.15);
}

/* Gallery Item Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.gallery-item-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item-box:hover .gallery-item-content {
    transform: translateY(0);
}

.gallery-item-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.gallery-item-content p {
    font-size: 14px;
    color: #f0f0f0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-image-btn {
    background-color: #ff6b35;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-image-btn:hover {
    background-color: #fff;
    color: #ff6b35;
    transform: scale(1.1);
}

/* Gallery CTA Section */
.gallery-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 30px;
    border-radius: 15px;
    color: #fff;
}

.gallery-cta h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.gallery-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.gallery-cta .btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.gallery-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Lightbox Modal Styles
   ============================================ */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.lightbox-caption p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ff6b35;
    transform: rotate(90deg);
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 20px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991px) {
    .gallery-item-box {
        height: 300px;
    }

    .gallery-item-content h4 {
        font-size: 20px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 3px;
    }

    .gallery-cta h3 {
        font-size: 28px;
    }

    .gallery-cta p {
        font-size: 16px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .gallery-section {
        padding: 50px 0;
    }

    .gallery-item-box {
        height: 250px;
        margin-bottom: 20px;
    }

    .gallery-item-content h4 {
        font-size: 18px;
    }

    .gallery-item-content p {
        font-size: 12px;
    }

    .view-image-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
        margin: 3px;
    }

    .gallery-cta {
        padding: 40px 20px;
    }

    .gallery-cta h3 {
        font-size: 24px;
    }

    .gallery-cta p {
        font-size: 14px;
    }

    .gallery-cta .btn {
        padding: 12px 25px;
        font-size: 14px;
        margin: 5px;
    }

    .lightbox-close {
        font-size: 40px;
        top: 10px;
        right: 15px;
    }

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

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        padding: 15px 20px;
        margin-top: 15px;
    }

    .lightbox-caption h3 {
        font-size: 20px;
    }

    .lightbox-caption p {
        font-size: 14px;
    }

    #lightbox-img {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .gallery-item-box {
        height: 200px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.pad-top-70 {
    padding-top: 70px;
}

.pad-bottom-70 {
    padding-bottom: 70px;
}

.mar-bottom-50 {
    margin-bottom: 50px;
}

.mar-top-50 {
    margin-top: 50px;
}

.mar-bottom-30 {
    margin-bottom: 30px;
}

.mar-right-10 {
    margin-right: 10px;
}