body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: #222;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 4 4'%3E%3Cpath fill='%23111' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    background-attachment: scroll;
    touch-action: pan-x pan-y;
}
.gallery {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fill, minmax(35vmin, 1fr));
    padding: 10px;
}
.galleryimg {
    width: 100%;
    height: 35vmin;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
}
.galleryimg:hover {
    opacity: 0.75;
}
.folder, .folder-back {
    position: relative;
    font-size: 3vmin;
    padding-top: 15vmin;
    padding-bottom: 14vmin;
    color: #fff;
    cursor: pointer;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: linear-gradient(130deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(171,171,171,0.5) 60%, rgba(0,0,0,0) 80%, rgba(0,0,0,0) 100%);
    background-position: 0 0;
    background-size: 250% 250%;
    transition: background-position 1s ease;
    backdrop-filter: blur(1px);
    overflow: hidden;
}
.folder::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 10vmin;
    background-color: rgba(0, 0, 0, 0.75);
	box-shadow: 0.5vmin 0.5vmin 1.5vmin rgba(0, 0, 0, 0.25);
    top: 35%;
    left: -50px;
    z-index: -1;
    transform: rotate(-5deg);
}
.folder:hover, .folder-back:hover {
    background-position: 100% 100%;
}
a {
    color: #000;
    text-decoration: none
}
.folder-image {
    z-index: -1;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
	border-radius: 3px;
    mask-image: linear-gradient(230deg, rgba(0,0,0,1), rgba(0,0,0,0));
}
#gallery-img {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#image-gallery .closeIcon {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 50px;
    width: 50px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    z-index: 1010;
    display: none;
}
#image-gallery .fullscreenIcon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 50px;
    width: 50px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    z-index: 1010;
    display: none;
}
#image-gallery .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 15px;
    z-index: 1010;
    display: none;
}
#image-gallery .nav-arrow:hover {
    transform: translateY(-50%) scale(1.2);
}
#image-gallery .nav-arrow.left {
    left: 10px;
}
#image-gallery .nav-arrow.right {
    right: 10px;
}
#image-gallery:hover .nav-arrow, #image-gallery:hover .closeIcon, #image-gallery:hover .fullscreenIcon {
    display: block;
}
@media screen and (max-width: 600px) {
    #image-gallery .nav-arrow {
        display: none !important;
    }
}
@supports (-webkit-touch-callout: none) {
    #image-gallery .nav-arrow {
        display: block !important;
    }
}