/* Gallery Mobile Responsive Styles */

/* Base gallery styles override */
.gallery-section {
    padding: 100px 0 !important;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 50%, #1e40af 100%) !important;
}

.gallery-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    margin-bottom: 50px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.gallery-scroll-wrapper {
    flex: 1 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.gallery-items {
    display: flex !important;
    gap: 25px !important;
    transition: transform 0.4s ease !important;
    padding: 15px !important;
}

.gallery-item {
    flex: 0 0 320px !important;
    height: 280px !important;
    position: relative !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
}

.gallery-arrow {
    width: 60px !important;
    height: 60px !important;
    border: none !important;
    border-radius: 50% !important;
    background: linear-gradient(45deg, #fbbf24, #f59e0b) !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .gallery-section {
        padding: 60px 0 !important;
    }
    
    .gallery-section h2 {
        font-size: 36px !important;
        margin-bottom: 15px !important;
    }
    
    .gallery-section p {
        font-size: 16px !important;
        padding: 0 20px !important;
        margin-bottom: 40px !important;
    }
    
    .gallery-container {
        padding: 20px !important;
        margin-bottom: 40px !important;
        gap: 15px !important;
    }
    
    .gallery-arrow {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }
    
    .gallery-item {
        flex: 0 0 280px !important;
        height: 240px !important;
    }
    
    .gallery-items {
        gap: 20px !important;
        padding: 10px !important;
    }
    
    .gallery-overlay {
        padding: 20px 15px 15px !important;
    }
    
    .gallery-overlay h4 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }
    
    .gallery-overlay p {
        font-size: 14px !important;
    }
    
    .gallery-btn-container .btn-default {
        padding: 15px 40px !important;
        font-size: 16px !important;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    .gallery-section {
        padding: 40px 0 !important;
    }
    
    .gallery-section h2 {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }
    
    .gallery-section p {
        font-size: 14px !important;
        padding: 0 15px !important;
        margin-bottom: 30px !important;
        line-height: 1.6 !important;
    }
    
    .gallery-container {
        padding: 15px !important;
        margin-bottom: 30px !important;
        gap: 10px !important;
        position: relative !important;
    }
    
    .gallery-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 20 !important;
    }
    
    .gallery-arrow-left {
        left: 5px !important;
    }
    
    .gallery-arrow-right {
        right: 5px !important;
    }
    
    .gallery-scroll-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .gallery-item {
        flex: 0 0 240px !important;
        height: 200px !important;
    }
    
    .gallery-items {
        gap: 15px !important;
        padding: 5px 50px !important;
    }
    
    .gallery-overlay {
        padding: 15px 12px 12px !important;
        transform: translateY(0) !important;
        background: linear-gradient(transparent 30%, rgba(30, 58, 138, 0.95)) !important;
    }
    
    .gallery-overlay h4 {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    
    .gallery-overlay p {
        font-size: 12px !important;
    }
    
    .gallery-btn-container {
        margin-top: 30px !important;
    }
    
    .gallery-btn-container .btn-default {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
    .gallery-section {
        padding: 30px 0 !important;
    }
    
    .gallery-section h2 {
        font-size: 24px !important;
    }
    
    .gallery-section p {
        font-size: 13px !important;
        padding: 0 10px !important;
    }
    
    .gallery-container {
        padding: 10px !important;
        margin-bottom: 25px !important;
    }
    
    .gallery-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .gallery-item {
        flex: 0 0 200px !important;
        height: 180px !important;
    }
    
    .gallery-items {
        padding: 5px 40px !important;
        gap: 12px !important;
    }
    
    .gallery-overlay h4 {
        font-size: 14px !important;
    }
    
    .gallery-overlay p {
        font-size: 11px !important;
    }
}

/* Touch interactions for mobile */
@media screen and (max-width: 768px) {
    .gallery-item .gallery-overlay {
        transform: translateY(0) !important;
        background: linear-gradient(transparent 40%, rgba(30, 58, 138, 0.9)) !important;
    }
    
    .gallery-item:active {
        transform: scale(0.98) !important;
    }
    
    .gallery-arrow:active {
        transform: scale(0.95) !important;
    }
}

/* Ensure proper flex behavior */
@media screen and (max-width: 480px) {
    .gallery-container {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .gallery-scroll-wrapper {
        order: 0 !important;
        flex: 1 !important;
    }
}
