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

@font-face {
    font-family: "Akira";
    src: url("../../../fonts/Akira Expanded Demo.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}


body {
    font-family: "Akira";
    background: #111;
    color: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* TITLE */
h1 {
    text-align: center;
    margin: 2rem 0 1.5rem;
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gallery {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #1b1b1b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img {
    display: block;
    width: 200px;       
    height: auto !important;  
}

.gallery a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.gallery {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.gallery a {
    background: #1b1b1b;
    border-radius: 12px;
    overflow: hidden;

    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;   
}

.gallery a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.fancybox__slide img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.fancybox__container {
    --f-thumb-width: 72px;
    --f-thumb-height: 72px;
    --f-thumb-gap: 4px;   
}

.fancybox__thumbs {
    --f-thumb-width: 80px;
    --f-thumb-height: 60px;
    --f-thumb-gap: 4px;
    --f-thumbs-padding-x: 4px;
    --f-thumbs-viewport-padding-x: 0;
}

/* =======================================
   FLOATING "BACK TO PROJECTS" BUTTON
======================================= */

#navbar {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
}

.back-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.back-btn-circle {
    width: 60px;
    height: 60px;

    border-radius: 50%;
    background-color: #ffffff;      
    border: 3px solid #ffffff;      

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;               
    box-sizing: border-box;
    line-height: 0;

    transition: transform 0.25s ease;
}


.nav-logo {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.back-btn-label {
    white-space: nowrap;
    color: #ffffff;                
    font-family: "Akira";
    src: url("../../../fonts/Akira\ Expanded\ Demo.otf") format("opentype");
    font-weight: 400;

    font-size: 0;
    opacity: 0;
    transform: translateX(0);

    transition:
        font-size 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* Hover effects */
.back-btn:hover .back-btn-circle {
    transform: scale(1.06);
}

.back-btn:hover .back-btn-label {
    font-size: 1rem;
    opacity: 1;
    transform: translateX(4px);
}

/*
  __  __  __   __
|  \/  | | | / /
| |\/| | | |/ /
| |  | | |   |
| |  | | |    \
|_|  |_| |_| \_\
                         M  K  S  T  U  D  I  O
*/