.indexBody{
    background-image: url("../Resources/BackgroundImage/Home.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
}
.intro-text {
    max-width: 40%;
    margin: 40px auto;
    font-family: "GillSansMedium", Helvetica, sans-serif;
    font-size: 1.5em;
    text-align: justify;
    text-align-last: center;
    padding: 0 20px;
}

.social-contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    justify-items: center;
    width: 100%;
    text-align: center;
    max-width: 100%;
    margin: 40px auto;    
}
.social-contact-section section {
    background-color: #000000;
}
.social-contact-section h2 {
    font-family: "GillSansMedium", Helvetica, sans-serif;
    color: white;
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 3%;
    text-transform: none;
    text-decoration: none;
}

.socials{
    grid-column: 1;
    padding: 5%;
}

.socialsTitle{
    grid-column: 1;
}

.slider{
    position: relative;
    overflow: hidden;
    max-height: 55vh;
    height: 55em;
    width: 100%;
}
.slider button{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: hsla(0, 0%, 0%, 0);
    border: none;
    cursor: pointer;
}

#posts .bluesky-embed {
  flex: 0 0 350px;
  scroll-snap-align: start;
}
#posts article {
  min-width: 250px;
  padding: 1rem;
  border: 1px solid #fff;
  border-radius: 8px;
}

.slides {
    width: 100%;
    height: 100%;
}
.slides img{
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;  
    object-position: center;
}

.third-party-section h2 {
    font-family: "arial-black", Helvetica, sans-serif;
    color: black;
    font-size: 180%;
    margin-bottom: 10px;
    padding: 3%;
    text-align: center;
    text-transform: none;
    text-decoration: none;
}

.third-party-section span {
    font-family: "ZeroesOne", Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 200%;
}

.projectInfo {
    background-color: transparent;
    border: none;
    cursor: pointer;
    filter: drop-shadow(9px 6px #000000);
}

.projectInfo-Alt {
    background-color: transparent;
    border: none;
    cursor: pointer;
}


/* Home Page (Project Popup) */
.projectPopupDisplay {
    position: fixed;
    font-family: "GillSansMedium", Helvetica, sans-serif;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.projectPopupDisplay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.projectPopupContent {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    background-color: white;
    padding: 20px;
    border: 10px solid #000000;
    position: relative;
    align-items: center;
    margin: 10vh 20vh;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overflow-x: hidden;
}
.projectPopupContent a {
    background-color: black;
    font-family: "PenumbraSansStd", sans-serif;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: 1.5em;
    margin: 0 10px;
}
.projectPopupContent section {
    align-items: center;
    justify-content: center;
}
.projectPopupContent button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}
.projectPopupContent img {
    width: 60%;
    height: auto;
    grid-column: 2;
    margin-bottom: 20px;
}

.popupFirst {
    grid-column: 1;
}
.popupSecond {
    grid-column: 3;
}

.popupText{
    max-width: 60vh;
    font-size: 1.5em;
}

.projectAuthor {
    font-family: "PenumbraSansStd", Arial, sans-serif,;
    font-weight: bold;
    font-size: 1.7em;
    margin-bottom: 20px;
    margin-top: -20px;
}

#whoEnvolved {
    margin-top: 10px;
    font-style: italic;
    color: #8e8e8e;
}

#projectDesc {
    border-bottom: 10px solid #000000;
    padding-bottom: 2vh;
}

#closeButton{
    position: absolute;
    top: 0;
    right: 0;
}


.prev{
    left: 0;
}

.next{
    right: 0;
}

img.displaySlide{
    display: block;
    animation-name: slide;
    animation-duration: 1.5s;
}

@keyframes slide {
    from {opacity: 0.4;}
    to {opacity: 1;}
}


@media only screen and (max-width: 1268px) {


    .slider {
        height: 20em;
    }


    .slider button img {
        width: 30px;
        height: auto;
    }


    .intro-text {
        max-width: 100%;
        font-size: 100%;
    }


    .third-party-section h2 {
        max-width: 90%;
        font-size: 100%;
        transform: rotate(0deg);
        margin: -30px auto 40px auto;
    }


    .social-contact-section {
        display: block;
        margin: 20px auto;
    }



    .projectPopupContent {
        grid-template-columns: 1fr; 
        margin: 0;
    }


    .projectPopupContent img {
        width: 40%;
    }


    .popupFirst {
        grid-column: 1;
        grid-row: 1;
    }


    .popupSecond {
        grid-column: 1;
        grid-row: 3;
    }


    .popupText {
        max-width: none;
        padding-top: 20px;
        font-size: 1em
    }


    div:has(#projectSiteLink):has(#projectSocialLink) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


    #projectDesc {
        font-size: 1.2em;
    }


    #closeButton {
        width: fit-content;
        height: fit-content;
        padding: 0;
        top: 10px;
        right: 10px;
    }


    #closeButton img {
        width: 50px;  
        height: auto;
        display: block;
    }


    .projectPopupContent button {
         padding: 0;
    }


    .indexBody{
        background-image: url("../Resources/BackgroundImage/Home.png");
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: 300% auto;
    }
}
