.gallery-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.desktop-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.mobile-carousel {
    display: none;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.main-carousel-image {
    position: relative;
    width: 100%;
}

.main-carousel-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

.carousel-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
}

.carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 60px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.thumb:hover, .thumb.active {
    border-color: var(--primary-green);
    opacity: 1;
}

@media (max-width: 979px) {
    .desktop-grid {
        display: none !important;
    }
    .mobile-carousel {
        display: flex !important;
    }
}