@font-face {
    font-family: 'Audiowide';
    src: url('/static/fonts/audiowide.ttf') format('truetype');
}
@font-face {
    font-family: 'Tilt Neon';
    src: url('/static/fonts/sourcecodepro.ttf') format('truetype');
}
@font-face {
    font-family: 'Source Code Pro';
    src: url('/static/fonts/titlneon.ttf') format('truetype');
}
@media (max-width: 768px) {
    .resized-image { max-width: 45%; }
    .nav-btn { width: 50px; height: 50px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}
body {
    background-color: #000;
    color: white;
    margin: 0;
    padding: 20px;
    font-family: 'Source Code Pro', monospace;
}
.title-project {
    font-family: Audiowide;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.resized-image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.resized-image {
    max-width: 23%;
    margin: 10px;
    border-radius: 15px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9) translateY(50px);
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.resized-image.loaded {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.resized-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}
.full-screen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(20,20,20,0.9));
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.full-screen-overlay.active {
    display: flex;
    opacity: 1;
}
.viewer-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(0);
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    will-change: transform, opacity;
    z-index: 1;
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 3;
}
.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}
.prev { left: 20px; }
.next { right: 20px; }
.back-button {
    width: 50px;
    height: 50px;
}