@font-face {
    font-family: "Inter";
    src: url("/fonts/inter-tight-600.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

:root {
    --grid-gap: 20px;
    --edge-padding: 10px;
}

body {
    background-color: black;
    color: white;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding-top: 80px;
    min-height: 100vh;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

html {
    background-color: black;
}

.gallery-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
    padding: var(--edge-padding);
    box-sizing: border-box;
    width: 100%;
    align-content: flex-start;
}

.grid-item {
    position: relative;
    display: block;
    width: calc((100% - (3 * var(--grid-gap))) / 4);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.7rem;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.grid-item:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .grid-item {
        width: calc((100% - var(--grid-gap)) / 2);
    }

    .caption {
        font-size: 1.7rem;
    }
}
