/* Service Hover Gallery - Frontend Styles */

.shg-gallery {
    display: flex;
    width: 100%;
    gap: 0;
    overflow: hidden;
}

.shg-service-col {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
}

.shg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.shg-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    z-index: 2;
    transition: all 0.4s ease;
}

.shg-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.shg-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.shg-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.shg-service-col:hover .shg-description {
    opacity: 1;
    max-height: 200px;
    margin-top: 10px;
}

.shg-service-col:hover .shg-content h3 {
    font-size: 28px;
}

/* Mobile Responsive - Stack vertically */
@media (max-width: 768px) {
    .shg-gallery {
        flex-direction: column;
    }
    
    .shg-service-col,
    .shg-service-col:hover,
    .shg-gallery:hover .shg-service-col:not(:hover) {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
    
    .shg-description {
        opacity: 1 !important;
        max-height: none !important;
        margin-top: 10px !important;
    }
    
    .shg-content {
        padding: 20px 15px;
    }
    
    .shg-content h3 {
        font-size: 20px !important;
    }
    
    .shg-content p {
        font-size: 14px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .shg-content {
        padding: 25px 15px;
    }
    
    .shg-content h3 {
        font-size: 20px;
    }
    
    .shg-service-col:hover .shg-content h3 {
        font-size: 24px;
    }
    
    .shg-content p {
        font-size: 14px;
    }
}
