/* StyleRef for Portfolio Pages */

footer {
    margin-top: 80px;
}

main > *{
    margin: 10px;
}
.banner-items{
    display: grid;
    grid-template-columns: 1fr 3fr ;
    gap: 10px;
    margin: 70px auto 10px auto;
    width: 65%;
}

.main-content{
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 65%;
    margin: auto;
    transition: width 0.8s ease;
}

.sticky{
    position: sticky;
    top: 0;
}

.backdrop{
    position: absolute;
    width: 57%;
    height: 100%;
    margin: auto;
    z-index: -1;
    left: 0;
    right: 0;
    top: 10%;

    border-radius: 10px;
    background-color: #171D2A;
    border: 3px solid #222A3B;
}

.display-img{
    position: relative;
    z-index: 4;
}
.display-img img{
    position: absolute;
    right: 0; bottom: -20px;
    height: 135%;
    width: auto;
}

.content{
    flex: 3 1;
}

.filterbox{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;

    height: fit-content;
    padding: 40px 13px 13px 13px;
    flex: 1 1;
    max-width: 345px;
    z-index: 3;
    overflow: hidden;

    border-radius: 5px;
    opacity: 1;
    background-color: #415171;
    box-shadow: 5px 5px 5px #0e142093;

}
.filterbox > div:nth-child(1){
    position: absolute; top: 0; right: 0;
    background-color: #516286;
    height: 30px;
    width: 100%;
    padding: 3px;
}
.filterbox div:first-child > div > input{
    position: absolute;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
}

.filterbox div:first-child > div > input:hover{
    cursor: pointer;
}

.filterbox div:first-child > div{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
}   

.filterbox div:first-child > div > img{
    width: 1.2rem;

}
.filterbox > div:nth-child(2){
    flex: 0 1 0;
    border-radius: 10px;
    color: #171D2A;
    font-size: 0.8rem;
    padding: 15px;
    background-color: #ffffff;
}

.filterbox > div:nth-child(3){
    flex: 1 1 0;

    border-radius: 5px;
    background-color: #2B354F;
}

#FILTER-MENU{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    padding: 0 0 5px 0;
    width: 100%;
}

#FILTER-MENU > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 2px;
    padding: 5px 10px 5px 10px;
    border-radius: 2px;
    color: #ffffff;
    background-color: #647AA6;
    text-transform: uppercase;
    border: none;
}

#FILTER-MENU > button > img{
    width: 18px;
}

#FILTER-MENU div:first-child{
    position: absolute;
    padding: 5px 10px 5px 10px;
    left: 5px;
    border-radius: 8px;
    color: #171D2A;
    text-transform: uppercase;
    background-color: #ffffff;
}

.tagbox-style{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    height: auto;
}

.tag-selector{
    position: relative;
    display: flex;
    flex-direction: row;
    background-color: #272E40;
    width: 100%;
    flex-grow: 1;
    height: auto;
}

#TAG-SELECTOR{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 5px;
    padding: 10px;
}
#TAG-SELECTOR > div{
    display: flex;
    flex: 1 1 auto;
}


#TAG-SELECTOR label{
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    padding: 2px;
    font-size: 0.8rem;
    text-align: center;
    width: fit-content;
    border-radius: 5px;
    color: #171D2A;
    background-color: #9AB9F8;
    border: 3px solid #171d2a00;
}

#TAG-SELECTOR label:hover{
    transition: 0.2s;
    scale: 1.05;
    border: 3px solid #ffffff;
}

#TAG-SELECTOR label:has(input[type="checkbox"]:checked){
    background-color: #FFB69B;
}

input[type="checkbox"] {
  border: none;
    appearance: none;
}

.gallery{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;

    margin: auto;

    background-color: #2B354F;
    background-size: 200%;
    border-radius: 20px;
    border: 3px solid #363F55;
}

.banners{
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
    margin: auto;
}

.banners > div {
}

.description-banner{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    position: relative;
    flex: 1.6;
    padding: 1.5%;

    z-index: 1;
    
    font-size: 0.8rem;
    border-radius: 5px;
    background-color: #FF8F66;
}
.description-banner div  {
    position: relative;
    flex-grow: 1;

    padding: 8px 20px 20px 20px;

    z-index: 3;
    overflow: hidden;

    border-radius: 5px;
    background-color: #ffffff;
    color: #171D2A;
}

.description-banner div span{
    display: block;
    height: auto;
}

.headline {
    position: absolute;
    top: -20px;

    padding: 1% 3% 2%;
    z-index: 0;

    text-align: center;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 400;
    border-radius: 7px;
    background-color: #FF6041;
}

.subheadline {
    margin: 3% 1% 5%;
    font-size: 1.1rem !important;
    font-weight: 400;
}

.additionals-banner{
    display: flex;
    flex-direction: column;
    flex: 1.2;
    gap: 5px;
    overflow: hidden;
}

.additionals-banner div{
    border-radius: 5px;
}

.additionals-banner div:nth-child(2){
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex: 1;
}

.social-banner{
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1.4;
    align-items: center;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #171D2A;
    background-color: #64749B;
}

.social-banner > * {
}

.social-banner span{
    flex: 0.5;
    background-color: #b0bfe2;
    border-radius: 5px;
    padding: 5px 5px;
}

.social-banner img {
    width: 40px;
    height: 40px;
    padding: 6px;
    background-color: #415171;
    border-radius: 5px;
}

.support-banner{
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;

    align-items: center;
    justify-content: center;
    color: #171D2A;
    background-color: #415171;
    font-size: 0.9rem;
}
.support-banner > div{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
    margin-top: auto;
}

.support-banner span{
    position: relative;
    background-color: #f3f7ff;
    border-radius: 5px;
    border: 2px solid black;
    padding: 5px;
    text-align: center;
    z-index: 2;
    box-shadow: 3px 5px 4px #231e46c2;
}

.support-banner > div > a > img:first-child {
    padding: 4px;
    width: 40px;
    border-radius: 5px;
    background-color: #FF8F66;
}

.support-banner img:nth-child(2){
    position: absolute;
    right: -30px;
    bottom: -25px;
    width: 137px;
    z-index: 1;
}

.commission-banner{
    display: flex;
    flex: 3;
    position: relative;
    background-color: #FF8F66;
    width: 100%;
    min-height: 100px;
    height: auto;
    overflow: hidden;
}

.commission-banner > img{
    position: absolute;
    top: -40px; bottom: 0; left: -50px;
    width: 230px;

    z-index: 1;
}

.commission-banner a:first-child > button{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    position: absolute;
    right: 0;
    padding: 10px;
    text-transform: uppercase;
    font-size: 1rem;
    width: auto;
    margin: 10px;

    border-radius: 3px;
    color: #ffffff;
    background-color: #FF6041;
    border: 2px solid #A7503F;
}

.commission-banner a:nth-child(2) > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 0; bottom: 0;
    padding: 2px 30px 2px 2px;
    margin: 5px;
    color: #A7503F;
    border: 2px solid #A7503F ;
    border-radius: 2px;
    background-color: #FFBA92;
}
.commission-banner a:nth-child(2) > button > img{
    position: absolute;
    right: -2px;
    width: 25px;
    padding: 2px;
    border: 2px solid #A7503F;
    background-color: #FF6041;
} 

.commission-banner > a:first-child > button > img:first-of-type {
    width: 50px;
}
.commission-banner > a:first-child > button > img:last-of-type {
    width: 23px;
}
/* Headlines /all */

.options{
    position: sticky; top: 20px;
    display: flex;
    margin-right: 10px; margin-left: auto;
    background-color: #192539;
    width: auto;
    border-radius: 10px;
    z-index: 3;
    margin-top: 2px;
}

.gallery > div:first-child{
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    padding: 5px;
}
.gallery > div:first-child > div:first-child{
    display: flex;
    gap: 5px;
    background-color: #fff;
    color: #000;
    font-size: 0.8rem;
    border-radius: 10px;
    height: fit-content;
    padding: 5px;
}

.gallery > div:first-child > div:first-child > img{
    width: 1.7rem;
    padding-left: 5px;
    aspect-ratio: 1;
}
.gallery > div:first-child > div:first-child > p {
    padding: 5px;
}
.filter{
    display: flex;

    position: relative;
    margin: 5px;
}
.options >* > button{
    height: 40px;
    width: 40px;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    background-color: #647AA6;
}

#voidy {
    width: 50%;
}

.dropdown-filter label{
    margin: 3px 10px 3px 10px;
    padding: 5px;
    background-color:#2b354cfa;
}

.filter-btn:hover .dropdown-filter {
  display: flex;
  flex-direction: column;
}

.sort{
    display: flex;

    position: relative;
    margin: 5px;
}

.dropdown-sort {
    display: none;
    position: absolute;

    background-color:#1d2434fa;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);

    z-index: 4;
    padding: 5px 0;
    border-radius: 5px;
    text-align: left;
}

.dropdown-sort label{
    margin: 3px 10px 3px 10px;
    padding: 5px;
    background-color:#2b354cfa;
}
.options label:hover{
    transform: scale(1.05);
    transition-duration: 0.2s;
    background-color: #5762a9;
}

.options label:active{
    transform: scale(1.10);
    transition-duration: 1ms;
    background-color: #dd9f5d;
}
/* problematic for older browsers and mobile potentionally */
.options label:has(input:checked){
    transform: scale(1.05);
    transition-duration: 0.2s;
    background-color: #dd9f5d;
}

.sort-btn:hover .dropdown-sort {
  display: flex;
  flex-direction: column;
}

.dropdown-btn > * label > *{
    margin: 5px;
}

.wrapper {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: 0.5s;
    border-radius: 5%;
    border: 3px solid  #414c68;
}

.wrapper img, .wrapper video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    grid-template-rows: repeat(1, 1fr); 
    gap: 8px;

    width: 99%; 
    max-width: 100%; /* Ensure it doesn't exceed the parent width */
    margin: 40px 5% 100px; 
    border-radius: 20px;
    justify-content: center;
}

.grid-layout .transform {
    transition: 0.5s;
}
.grid-layout .transform:hover .overlay{
    opacity: 1;
    cursor: pointer;
    transform: scale(102%);
    transition: 0.5s;
    
}
.grid-layout .transform:hover {
    transform: scale(102%);
    transition: 0.5s;
}

.grid-layout .transform:hover .wrapper {
    border: 3px solid #ffffff;
}

/* Media Queries */
@media screen and (max-width: 1350px) and (min-width: 600px) {

    .main-content {
        width: 95%;
    }

    .banner-items{
        width: 93%;
        margin: 70px auto 10px 40px;
    }
}
/* medium screens */
@media screen and (max-width: 600px) {
    main {
        max-width: 95%;
        background-size: 700%;
        margin: auto;
    }
    .main-content > div:first-child {
        position: sticky;
        z-index: 5;
    }

    .backbackdrop{
        display: none;
    }

    .gallery > div:first-child > div:first-child{
        font-size: 1.1vh;
    }
    
    .gallery > div:first-child > div:first-child > img{
        width: 1.8rem;
        padding-left: 5px;
    }
    .gallery > div:first-child{
        width: 58%;
    }
    body {
        background-size: 400px;
    }

    .filterbox {
        min-width: 200px;
        max-width: 300px;
        position: absolute; top: 0; bottom: 0;
    }

    .filterbox > div:nth-child(2){
        font-size: 0.6rem;
        padding: 8px 10px;
    }
    #TAG-SELECTOR {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-y: scroll;
        height: 200px;
        padding: 5px;
        font-size: 0.6rem;
    }

    #TAG-SELECTOR > label {
        width: auto;
        font-size: 0.7rem;
    }

    #FILTER-MENU{
        font-size: 0.7rem;
    }

    #FILTER-MENU > button {
        margin: none;
        padding: 2px 5px;
    }

    .banner {
        height: 60px;
    }

    .navi{
        /* justify-content: flex-start; */
    }

    #lang {
        margin-right: 0; margin-left: auto;
    }

    .main-content{
        width: 98%;
    }

    .column {
        flex: 1 1 calc(100%); /* Two columns on medium screens */
        max-width: calc(100%);
        margin-top: 10px;
    }

    .grid-layout, .image-container3 {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    }

    .headline {
        font-size: 1rem;
    }

    .banners {
        max-height: 150px;
    }

    .banner-items{
        margin: 30px auto 10px auto;
        gap: 7px;
    }

    .subheadline{
        font-size: 0.7rem !important;
        margin: 1% 1% 4%;
    }

    .display-img img {
        height: 140%;
        width: auto;
    }

    .description-banner{
        padding: 1.5vw;

    }
    .description-banner {
        line-height: 1.1;
    }

    .description-banner div{
        padding: 3% 5%;
    }

    .description-banner div span{
        font-size: 0.6rem;
    }

    .support-banner span{
        padding: 0;
    }

    .support-banner > div{
        padding: 5px;
    }
    
    .support-banner > div > a > img:first-child{
        padding: 3px;
    }
    .support-banner img:nth-child(2){
        right: -18px;
        bottom: 24px;
        width: 91px;
    }

    .commission-banner > img{
        top: -10px;
        left: -41px;
        width: 154px;
    }

    .banner-items{
        width: 100%;
        grid-template-columns: 1fr 1.3fr;
    }

    .row {
        gap: 0px;
    }

    .additionals-banner{
        margin-top: 10px;
    }

    .column {
        flex: 1 1 100%; /* Single column layout on small screens */
        max-width: 100%;
    }
    .grid-layout, .image-container3 {
        grid-template-columns: 1fr; 
    } 

    .wrapper {
        width: 100%;
        height: auto;
    }

    #fullimage {
        padding: 0px 0px 10px 0px;
        max-width: 100%;
        max-height: 100%;
    }

    .row {
        gap: 0px;
    }

    #voidy {
        width: 100%;
    }
}
