/* Picture element styles for WebP image support */

/* Ensure picture elements behave like regular images */
picture {
    display: inline-block;
    line-height: 0;
}

picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery specific styles */
.gallery-image picture {
    width: 100%;
    height: 100%;
}

.gallery-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Leader image specific styles */
.leader-image picture {
    width: 100%;
    height: 100%;
}

.leader-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Info image specific styles */
.info-image picture {
    width: 100%;
    height: 100%;
}

.info-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Gallery item specific styles */
.gallery-item picture {
    width: 100%;
    display: block;
}

.gallery-item picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* Facility gallery specific adjustments */
.gallery-grid .gallery-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.gallery-grid .gallery-image picture img {
    transition: transform 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid .gallery-image {
        height: 150px;
    }
}