/* General Styles */
body {
    font-family: "Spectral", serif;
    background-image: url(https://iili.io/2tHio4p.gif);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Desktop Window */
.window {
    width: 600px;
    height: 600px;
    background-color: white;
    border: 2px solid black;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

/* Folder Icons */
.folder {
    width: 120px;
    height: 100px;
    background-image: url(https://iili.io/2tJFJpa.webp);
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 10px;
    font-weight: bold;
    text-align: center;
}
.folder:hover {
    background-color: gray;
    color: white;
}

/* Modal Window */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: white;
    border: 1px solid black;
    padding: 10px;
    z-index: 1000;
    overflow: auto;
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.close {
    cursor: pointer;
    font-size: 24px;
}
.close:hover {
    color: lightpink;
}


/* Fullscreen Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-modal-content {
    position: relative;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    background: rgba(0, 0, 0, 0.3)
}

.image-modal img {
    max-width: 90vw;
    max-height: 80vh;
    cursor: pointer;
}

/* Close Button for Image Modal */
.close-image {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: black;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-image:hover {
    background: red;
}

/* Image Caption */
.image-caption {
    color: white;
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}

.gallery {
    column-count: 4;  /* Adjust for desired columns */
    column-gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    display: inline-block;
    width: 100%; /* Prevent breaking */
    margin-bottom: 10px;
    break-inside: avoid;
}

.gallery img {
    width: 100%;
    display: block;
    border-radius: 5px;
    
}

.gallery img:hover {
    cursor: pointer;
    
}


.caption {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
}
.filter-button {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}
.filter-button:hover {
    background-color: #bbb;
}