.project-page-section {
    background: rgb(26, 16, 16);
    min-height: 100vh;
    width: 100%;
    position: relative;
    isolation: isolate;
    --loading-blur: 0px;
    --tile-gap: clamp(10px, 1.6vw, 20px);
    --tile-size-min: 48px;
    --tile-size-max: 124px;
    --hover-bg-image: none;

}

.project-page-section::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--hover-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.03);
    transition: opacity 280ms ease;
}

.project-page-section.has-hover-background::before {
    opacity: 0.8;
}

.project-content{
    background: transparent;
    min-height: 100vh;
    width: 100%;
}

.projects-page-flexbox {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--tile-gap);
    padding: 110px;
    position: relative;
    z-index: 1;
}

.project-card-flexbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    position: relative;
}

.project-card-title-overlay a,
.project-card-title-overlay .project-card-date {
    font-family: "Oswald", sans-serif;
    color: var(--fontColour);
}

.project-card-title-overlay.page-loading{
    display: none;
}

.project-card-title-overlay {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2px, 0.5vh, 8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.project-card-title-overlay a {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 10rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.project-card-title-overlay .project-card-date {
    margin: 0;
    font-size: clamp(0.7rem, 1.35vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.1;
}


.project-card-flexbox:hover .project-card-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card-images-flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--tile-gap);
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
}

.project-card-images-flexbox a {
    position: relative;
    display: block;
    overflow: hidden;
    width: var(--tile-size, clamp(1rem, 2vw, 5rem));
    height: var(--tile-size, clamp(1rem, 2vw, 5rem));
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.project-card-title-overlay a,
.project-card-title-overlay .project-card-date {
  color: rgb(27, 238, 7);
}


.project-card-images-flexbox img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease;
}

.project-page-section.page-loading .projects-page-flexbox {
    filter: blur(var(--loading-blur));
}

.project-card-images-flexbox img:not(.is-loaded) {
    opacity: 0;
    visibility: hidden;
}
.counter.page-loading{
   display: block;
   position: fixed;
   left: 24px;
   bottom: 24px;
   z-index: 3;
   font-size: clamp(2.5rem, 8vw, 10rem);
   font-weight: 700;
   font-family: "Oswald", sans-serif;
   color: rgb(27, 238, 7);

}

.counter{
  display: none;
}


@media (max-width: 600px) {
    .project-card-title-overlay {
        visibility: hidden;
    }

    .project-card-description{
        display: none;
    }

    .project-card-title{
        overflow: visible;
        display: none;
    }

    .projects-page-flexbox {
        padding: 10px;
    }

    .project-card-images-flexbox a:nth-child(n + 4) {
        display: none;
    }
}
