/*
----------------------------------------------------------------------------------------------------------
    CSS -> Business -> Gallery
----------------------------------------------------------------------------------------------------------
*/

/* ========== Gallery Title Styles ========== */
.gallery-section-title {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

.gallery-section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #d6ae57;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto Condensed', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-section-title h2 span {
    color: #ff6b6b;
    position: relative;
}

.gallery-section-title h2 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
}

.gallery-section-title .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Decorative elements */
.gallery-title-decoration {
    position: relative;
    display: inline-block;
}

.gallery-title-decoration::before,
.gallery-title-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d6ae57);
    border-radius: 2px;
}

.gallery-title-decoration::before {
    right: 110%;
}

.gallery-title-decoration::after {
    left: 110%;
    background: linear-gradient(90deg, #d6ae57, transparent);
}

/* Alternative Style 1: Modern with icon */
.gallery-title-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-title-modern h2 {
    font-size: 2.5rem;
    color: #d6ae57;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding: 0 1.5rem;
}

.gallery-title-modern .title-icon {
    font-size: 2rem;
    color: #006bb5;
    animation: pulse 2s infinite;
}

.gallery-title-modern .title-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #d6ae57, #ff6b6b);
    border-radius: 3px;
}

/* Alternative Style 2: Elegant with border */
.gallery-title-elegant {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.gallery-title-elegant h2 {
    display: inline-block;
    font-size: 2.8rem;
    color: #006bb5;
    font-weight: 300;
    padding: 1rem 2.5rem;
    border: 2px solid #006bb5;
    border-radius: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 107, 181, 0.1);
    transition: all 0.3s ease;
}

.gallery-title-elegant h2:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 107, 181, 0.2);
    background: white;
}

/* Alternative Style 3: Minimalist with underline */
.gallery-title-minimalist {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title-minimalist h2 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 400;
    position: relative;
    padding-bottom: 1.2rem;
    display: inline-block;
}

.gallery-title-minimalist h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #006bb5, #00b4d8);
    border-radius: 2px;
}

/* Alternative Style 4: Creative with background */
.gallery-title-creative {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.gallery-title-creative h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    display: inline-block;
}

.gallery-title-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #006bb5, #00b4d8);
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
    z-index: 1;
}

/* Animation for icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========== Responsive Gallery Title ========== */
@media (max-width: 768px) {
    .gallery-section-title h2 {
        font-size: 2.2rem;
    }
    
    .gallery-title-modern h2,
    .gallery-title-elegant h2,
    .gallery-title-minimalist h2,
    .gallery-title-creative h2 {
        font-size: 2rem;
    }
    
    .gallery-title-modern {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .gallery-title-decoration::before,
    .gallery-title-decoration::after {
        width: 40px;
    }
    
    .gallery-title-creative::before {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-section-title h2 {
        font-size: 1.8rem;
    }
    
    .gallery-section-title .section-subtitle {
        font-size: 1rem;
    }
    
    .gallery-title-modern h2,
    .gallery-title-elegant h2,
    .gallery-title-minimalist h2,
    .gallery-title-creative h2 {
        font-size: 1.6rem;
    }
    
    .gallery-title-creative h2 {
        padding: 0 1rem;
    }
}


/* Gallery Section Styles */
.sect-gallery {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 107, 181, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-caption {
    color: white;
    text-align: center;
    padding: 1rem;
}

.gallery-caption i {
    margin-bottom: 10px;
}

.gallery-caption h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-caption p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    animation: zoomIn 0.3s;
}

.gallery-modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal-caption {
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 1.1rem;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.gallery-modal-close:hover {
    color: #006bb5;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.gallery-modal-prev,
.gallery-modal-next {
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    color: #006bb5;
}

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

@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.9); }
    to { transform: translateY(-50%) scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-modal-content {
        max-width: 95%;
    }
    
    .gallery-modal-prev,
    .gallery-modal-next {
        font-size: 35px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .sect-gallery {
        padding: 3rem 0;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
}