.gallery-slider {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
}

.featured-image .overlay h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.featured-image .overlay p {
    margin: 0;
    font-size: 16px;
}

.thumbnail-carousel {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    background: #f0f0f0;
}

.thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .featured-image .overlay h2 {
        font-size: 20px;
    }

    .featured-image .overlay p {
        font-size: 14px;
    }

    .thumbnail {
        width: 80px;
        height: 48px;
    }
}