
@media (max-width: 1024px) {
    .gallery-item {
        width: 100% !important;
    }
    .thumbnail-item {
        height: 50px !important;
    }
}

:root {
    color-scheme: dark;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle, rgb(46, 46, 46) 0%, rgb(0, 0, 0) 100%);
}

.gallery-wrapper {
    display: flex;
}

.gallery-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

}

.gallery-item {
    width: 60%;
    height: calc(100vh - 150px);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.thumbnails {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.thumbnail-item {
    height: 100px;
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    object-fit: cover;
    border-radius: 5px;
    transition: filter 0.3s;
}

.thumbnail-item:hover {
    filter: brightness(1.5) contrast(1.5);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.download-btn {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
}

.download-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.zoom-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
}

.zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.thumbnail-item.active {
    border: 2px solid #ffffff88; 
    filter: brightness(2) contrast(0.8);
}

.gallery-item {
    cursor: zoom-in;
}

.gallery-item.zoomed {
    cursor: zoom-out;
}
