/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styling */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    padding: 10px;
    text-align: center;
}

/* Container styling */
.container {
    max-width: 1200px;
    background-color: #fff;
    border: 1px solid #333;
    border-right: 0;
    border-bottom: 0;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Content box styling */
.content-box {
    background-color: #fff;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    width: 100%;
    padding: 10px;
    text-align: center;
}

.content-box img {
    width: 100%;
    height: auto;
    border: 20px;
}

.content-box video {
    width: 100%;
    height: auto;
    object-fit: fit;
    display: block;
    padding: 2px;
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sketchfab-container {
    position: relative;
    padding-top: 100%;
    height: 0;
    overflow: hidden;
}

.sketchfab-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Grid item styling */
.grid-item {
    background-color: #fff;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    width: 25%;
    text-align: center;
    position: relative;
    transition: transform 0.5s ease;
}

.grid-item a {
    display: block;
    position: relative;
    overflow: hidden;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    padding: 10px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.grid-item img:hover,
.grid-item video:hover {
    opacity: 0.5;
}

/* Loader styling */
.loader {
    position: absolute;
    left: 45%;
    top: 40%;
    width: 4vh;
    aspect-ratio: 4;
    background: radial-gradient(circle closest-side, #000 90%, #3330) 0/calc(100%/3) 100% no-repeat;
    animation: l2 1.2s steps(3) infinite;
}

@keyframes l2 {
    to {
        background-position: 150%;
    }
}

/* Description box */
.grid-item .description {
    font-weight: 300;
    color: #333;
    padding: 2%;
    padding-top: 0;
    background-color: #fff;
    /* border-top: 1px solid #333; */
    text-align: center;
}

/* Header box styling */
header {
    color: #333;
    padding: 0;
    padding-bottom: 0.25vw;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    margin: -10px;
}

/* Header content styling */
.header-content {
    display: flex;
    justify-content: space-between; /* Space between text and icons */
    align-items: center; /* Vertically center content */
    font-size: 1.5em;
}

header a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1em;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 5px;
}

/* Hover effect with unique colors for each social icon */
header a:hover {
    transform: scale(1.15);
    color: #000;
}

header b {
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.5em;
    vertical-align: middle;
}

header .icon {
    width: 1em;  /* Adjust width as needed */
    height: auto; /* Adjust height as needed */
    vertical-align: middle; /* Align vertically within the link */
    margin: 0 5px; /* Optional: add spacing around the icons */
    background-color: #fff;
}

/* Additional rotation example: 180 degrees */
.rotate-180 {
    transform: rotate(180deg);
}

/* Footer styling */
footer {
    font-weight: 400;
    font-size: 0.8em;
    color: #333;
    padding: 10px;
    align-items: center;
}

footer a {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer a:hover {
    transform: scale(1.15); /* Zoom in on hover */
    color: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #333;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}

.social-link[href*="mailto:"]:hover {
    color: #009925;
}

.social-link[href*="linkedin.com"]:hover {
    color: #0077b5;
}

.social-link[href*="github.com"]:hover {
    color: #3d75c2;
}

.social-link[href*="instagram.com"]:hover {
    color: #E1306C;
}

.social-link[href*="artstation.com"]:hover {
    color: #31ace3;
}

.social-link[href*="youtube.com"]:hover {
    color: #f90000;
}

.social-link[href*="you-re.github.io"]:hover {
    color: #00aef9;
}

/* Typography */
h1 {
    text-transform: uppercase;
    font-weight: 150;
    font-size: 2em;
    color: #333;
}

h2 {
    text-transform: uppercase;
    font-weight: 200;
    font-size: 1.5em;
    color: #333;
}

p {
    font-family: 'Old Standard TT', serif;
    font-weight: 100;
    font-size: 1em;
    color: #333;
    padding-inline: 10%;
    text-align: left;
}

p a {
    color: #333;
    transition: color 0.2s ease;
}

p a:hover {
    color: #000;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image-container {
    background-color: #fff;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    height: auto;
    overflow: hidden;
}

.modal-content {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    transition: transform 0.1s ease;
}

.close {
    font-size: 3vh;
    font-weight: 100;
    color: #333;
    cursor: pointer;
    align-self: flex-end;
    margin: -1vh 1vh 0 0;
}

.modal-caption {
    text-align: center;
    color: #333;
    font-weight: 300;
    max-width: 80%;
    padding: 10px 0;
}

/* Responsive grid */
.grid-small {
    background-color: #fff;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    width: calc(100% / 3);
    text-align: center;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.grid-small a {
    display: block;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.grid-small img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

/* Responsive breakpoints */
@media (max-width: 10000px) {
    .grid-item {
        width: 50%;
    }
}

@media (max-width: 800px) {
    .grid-item {
        width: 100%;
    }

    .social-icons {
        gap: 10px;
    }
    
    header {
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .social-icons {
        gap: 8px;
    }

    .social-link {
        font-size: 1.3em;
    }

    header {
        font-size: 0.75em;
    }
}

@media (max-width: 400px) {
    .social-icons {
        gap: 7px;
    }

    .social-link {
        font-size: 1em;
    }

    header {
        font-size: 0.6em;
    }
}
