/* StyleRef for all Project Pages */
header img {
    width: 100px;
    height: 100px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    max-width: 1000px;
    margin: 2% auto;
    padding: 0 10px; /* Ensure some space around content */
    background-image: url(images/Backdrop.png);
    background-size: 200%;
    border-radius: 20px;
    border: 3px solid #363F55;
}

.headline {
    position: absolute;
    top: -20px;
    left: -20px;
    text-transform: uppercase;
    text-align: center;
    margin: 5px auto 10px;
    font-size: 2rem;
    width: fit-content;
    font-weight: 600;
    background-color: #3a4663;
    border: 2px solid #1D2434;
    padding: 5px 25px;
    border-radius: 50px;
}

.text{
    margin-top: 40px;
    text-align: justify;
    line-height: 1.5;
}

.textblock{
    position: relative;
    margin: 100px auto 0;
    width: 90%;
    max-width: 600px;
    background-color: #363F55;
    border: 2px solid #1D2434;
    padding: 30px;
    border-radius: 15px;
}

.flex-gallery {
    width: 100%;
    align-items: center;
    max-width: 2000px;
    margin: 20px auto 100px;
}

.row {
    display: grid;
    grid-template-rows: 1fr; 
    justify-content: center;
    margin: auto 1rem;
    gap: 10px; /* Added gap for spacing between images */
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width = 9 / 16 = 56.25%) */
    height: 0;
    overflow: hidden;
    max-height: 85vh;
    border-radius: 15px;
    border: 3px solid #363F55;
}
video {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: auto;
    border-radius: 15px;
    border: 3px solid #363F55;
}

/* iframe styling */
.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}
.content-wrapper img {
    display: block;
    object-fit: cover;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: auto;
    border: 2px solid #363F55;
    border-radius: 15px;
    transition: 0.5s;
}


.content-wrapper {
    display: inline-block;
    position: relative;
    transition: 0.5s;
    max-width: 100%;
}

.content-wrapper:hover .overlay{
    opacity: 1;
    cursor: pointer;
    transform: scale(101%);
    transition: 0.5s;
    border: 3px solid #ffffff;
}

.content-wrapper:hover img{
    transform: scale(101%);
    transition: 0.5s;
}

#full-image-view {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .9);
    text-align: center;
    object-fit: cover;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#fullimage {
    padding: 24px;
    max-width: 98%;
    max-height: 95%;
    object-fit: contain;
}

.image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 98%;
    max-height: 98%;
}

.back-button {

    display: inline-block;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    font-weight: 500;
    font-size: 1.5rem;
    margin: 90px auto 150px auto;
    text-transform: uppercase;

}
.back-button a {
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 800px) 
{
    main {
        background-size: 700%;
    }
    
    .row {
        margin: auto 0.5rem;
        gap: 15px;
    }

    .headline {
        position: absolute;
        top: -60px;
        left: 0px;
        right: 0px;

    }
}