.post-gallery {
    margin-bottom: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-main {
    margin: 0 0 15px;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-thumb-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.gallery-thumb {
    flex: 1;
    min-width: 0;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #2f9e44;
}

.gallery-thumb:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-main img {
        height: 280px;
    }
    
    .gallery-thumb {
        flex: 0 0 calc(33.333% - 7px);
        height: 70px;
    }
}

@media (max-width: 575px) {
    .gallery-thumb {
        flex: 0 0 calc(50% - 5px);
        height: 60px;
    }
    
    .gallery-main img {
        height: 200px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .gallery-main img {
        height: 400px;
    }
    
    .gallery-thumb {
        flex: 1;
        height: 80px;
    }
}

/* Mobile - 3 columns */
@media (max-width: 768px) {
    .gallery-main img {
        height: 300px;
    }
    
    .gallery-thumb-list {
        flex-wrap: wrap;
    }
    
    .gallery-thumb {
        flex: 0 0 calc(33.333% - 7px);
        height: 70px;
    }
}

/* Small Mobile - 2 columns */
@media (max-width: 575px) {
    .gallery-main img {
        height: 250px;
    }
    
    .gallery-thumb {
        flex: 0 0 calc(50% - 5px);
        height: 60px;
    }
}