#loader {
    position: fixed;
    inset: 0;
    background-color: black;
    background-image: url('../extra/Background/Background1.jpg');
    background-size: auto 100%;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    background-image: url('../extra/Background/Background1.jpg');
    background-size: auto 100%;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 2vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

header {
    text-align: center;
    position: relative;
}

.download-btn {
    position: absolute;
    top: 0;
    right: 0;
    color: #ffffffaa;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    text-decoration: none;
}

.download-label {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    letter-spacing: 0.05em;
}

.download-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.download-btn svg {
    width: clamp(1.5rem, 3vw, 2.5rem);
    height: clamp(1.5rem, 3vw, 2.5rem);
}

header h1 {
    display: inline-block;
    font-size: clamp(1.8rem, 8vw, 7rem);
    mask: linear-gradient(to right, rgba(0,0,0,0.4) 0%,black 10%,rgba(0,0,0,0.4) 20%, black 30%, rgba(0,0,0,0.4) 40%,  black 50%, rgba(0,0,0,0.4) 70% , black 80%, rgba(0,0,0,0.4) 100%);
    -webkit-mask: linear-gradient(to right, rgba(0,0,0,0.4) 0%,black 5%,rgba(0,0,0,0.4) 15%, black 25%, rgba(0,0,0,0.4) 35%,  black 50%, rgba(0,0,0,0.4) 60% , black 75%, rgba(0,0,0,0.4) 90% , black 100%);
}

main {
    max-width: 100vw;
    margin: 0 auto;
    padding: 1vw;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
}

footer {
    margin-top: auto;
    text-align: center;
    font-size: clamp(0.6rem, 2.5vw, 1rem);
    padding: 1vw;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10vmin;
    padding: 2vmin;
    justify-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vmin;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vmin;
        padding: 2vmin;
    }
    .image-box {
        border-radius: 4vw;
    }
}

.image-box {
    display: block;
    width: min(100%, 35vh);
    max-height: 30vh;
    aspect-ratio: 1 / 1;
    background-color: #ebe3e300;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 6px 12px rgba(97, 94, 94, 0.397),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(82, 80, 80, 0.356),
        inset 2px 0 0 rgba(255,255,255,0.2),
        inset -2px 0 0 rgba(92, 88, 88, 0);
    border: clamp(2px, 0.4vw, 4px) solid #575f63a9;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.image-box:hover {
    transform: scale(1.08);
    border-color: #ffffffcc;
    box-shadow:
        0 12px 28px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mask:
        linear-gradient(to right,  transparent 0%, black 40%, black 60%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    transition: transform 0.4s ease;
}

.image-box:hover img,
.image-box:active img,
.image-box:focus-within img {
    transform: scale(1.08);
    mask: none;
    -webkit-mask: none;
    filter: brightness(0.75);
}
