.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.space-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.space-mono-regular-italic {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.space-mono-bold-italic {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
}



/* General font settings */
body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    font-family: "Space Mono", serif;
    font-optical-sizing: auto;
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Container */
.header-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0px;
    margin-bottom: 0px;
}

/* Name Button */
.name-button {
    font-family: "Space Mono", serif;
    font-size: 24px;
    font-weight: 400;
    color: black;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid black;
    text-align: center;
    cursor: default;
    user-select: none;
}

/* Category Selector */
.category-selector {
    display: flex;
    gap: 20px;
}

.category-selector a {
    font-family: "Space Mono", serif;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: white;
    background-color: rgba(241, 145, 109, 1); /* same as the 5th button */
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

.category-selector a:hover {
    transform: scale(1.1);
}


.category-selector button {
    font-family: "Space Mono", serif;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.category-selector button:nth-child(1) { background-color: rgba(51, 51, 51, 1); }
.category-selector button:nth-child(2) { background-color: rgba(25, 48, 92, 1); }
.category-selector button:nth-child(3) { background-color: rgba(243, 218, 223, 1); }
.category-selector button:nth-child(4) { background-color: rgba(3, 18, 47, 1); }
.category-selector button:nth-child(5) { background-color: rgba(241, 145, 109, 1); }

.category-selector button:hover { transform: scale(1.1); }

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22%, 1fr)); /* 4 items fit horizontally */
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100%; /* Maintains square aspect ratio */
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.03); }

/* Text overlay */
.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: white;

    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.text-overlay h3 {
    font-family: "Space Mono", serif;
    font-weight: 650;
    margin: 10px;
	line-height: 1;
    font-size: 48px;
}

.text-overlay p {
    font-family: "DejaVu Sans Mono", Courier, monospace;
    font-size: 14px;
    font-weight: 100;
    margin: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr)); /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}
