/*
    Ressponsive design steps
    Full: >900px -> Desktop View.
    Mobile: <900px -> Reduce Paddings and Margins. 
    Mobile Small: <600px -> Break columns in rows. 
*/

/* -------------------- Defaults -------------------- */
*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family:'SuisseIntl';
    color: #2F2F2F;
}

body {
    padding: 1rem;
    min-height: 100vh;
    background-color: #F5F5F5;
}

header {
    min-height: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: right;
    flex-wrap: wrap; 
}

main {
    display: flex; /* Makes .main a flex container */
    flex-direction: column; /* Aligns children vertically */
    justify-content: space-between; /* Maximizes space between flex items */
    height: calc(100vh - 4rem); /* Adjusted for the header, as discussed */
    position: relative; /* For absolute positioning of the text within */
}

footer {
    height: 0rem;               /* Adapt to make visible */
    display: flex;              /* Make footer a flex container */
    justify-content: flex-end;  /* Push the content to the end */
    align-items: flex-end;      /* Align items to the bottom */
    color: lightgray;
    font-size: 0.75rem;
    text-transform: uppercase;
    visibility: hidden;         /* Adapt to make visible */
}

@media screen and (max-width: 600px) {
    header {
        justify-content: center; /* Centers the children (logo and menu) */
    }

    .main{
        height: 70vh; /* Adjusted for the header, as discussed */
        justify-content: baseline; /* Maximizes space between flex items */
    }
    
}

/* -------------------- Fonts -------------------- */
@font-face {
    font-family: 'SuisseIntl';
    src: url('../fonts/SuisseIntl-Regular.woff2') format('woff2'),
         url('../fonts/SuisseIntl-Regular.woff') format('woff'),
         url('../fonts/SuisseIntl-Regular.ttf') format('truetype'),
         url('../fonts/SuisseIntl-Regular.otf') format('otf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl';
    src: url('../fonts/SuisseIntl-Bold.woff2') format('woff2'),
         url('../fonts/SuisseIntl-Bold.woff') format('woff'),
         url('../fonts/SuisseIntl-Bold.ttf') format('truetype'),
         url('../fonts/SuisseIntl-Bold.otf') format('otf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl';
    src: url('../fonts/SuisseIntl-Light.woff2') format('woff2'),
         url('../fonts/SuisseIntl-Light.woff') format('woff'),
         url('../fonts/SuisseIntl-Light.ttf') format('truetype'),
         url('../fonts/SuisseIntl-Light.otf') format('otf');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl';
    src: url('../fonts/SuisseIntl-Medium.woff2') format('woff2'),
         url('../fonts/SuisseIntl-Medium.woff') format('woff'),
         url('../fonts/SuisseIntl-Medium.ttf') format('truetype'),
         url('../fonts/SuisseIntl-Medium.otf') format('otf');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SuisseIntl';
    src: url('../fonts/SuisseIntlMono-Thin.woff2') format('woff2'),
         url('../fonts/SuisseIntlMono-Thin.woff') format('woff'),
         url('../fonts/SuisseIntlMono-Thin.ttf') format('truetype'),
         url('../fonts/SuisseIntlMono-Thin.otf') format('otf');
    font-weight: 100;
    font-style: normal;
}

h1 {
    font-size: 3em;
    margin-bottom: 0.5em ;
    margin-top: 0.5em ;
    text-decoration: none;
}

h2 {
    font-size: 2rem;
    text-decoration: none;
    font-weight: 200;
}

h3 {
    font-size:1rem;
    margin-bottom: 1em ;
    margin-top: 1em ;
    text-decoration: underline;
}

.logo {
    min-height: 2rem;
    min-width: 20rem;
    flex-basis: auto;
}

.textMedium {
    font-weight: 600;
}

.textBold {
    font-weight: 700;
}

.textMediumGrey {
    color: #5A5A5A;
}

.textLightGrey {
    color: #A0A0A0;
}

.textSizeMediumDynamic {
    font-size: clamp(0.5rem, 1vw, 4rem);
}

@media screen and (max-width: 900px) {
    .logo{
        justify-content: center; /* Ensures content is centered */
        min-width: 7rem;
    }
}

/* -------------------- Links, Paragraphs, ... -------------------- */
a {
    color:currentColor;
}

.noUnderline, .noUnderline a {
    text-decoration: none !important;
}

.textAlignLeft{
    text-align: left;
}

.textAlignRight{
    text-align: right;
}

p {
}

/* -------------------- Menu -------------------- */
.menu {
    visibility: visible;
    padding-left: 40px; 
    min-height: 2rem;
}

.menu a {
    padding: 0 20px; 
    min-height: 2rem;
    text-align: left; 
}

@media screen and (max-width: 900px) {
    .menu {
        padding-left: 10px; 
    }

    .menu a {
        padding: 0 10px; 
    }
}

@media screen and (max-width: 600px) {
    .menu {
        justify-content: center; 
        padding-left: 0;
        text-align: center;
    }
}

/* -------------------- Projects -------------------- */
.projects {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    list-style: none;
    margin-top: 2rem;
}

.pelement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    border-top: 1px solid #5A5A5A;
}

.pecolumn {
    flex: 1;
    min-height: 3rem;
    padding: 0.5rem;
    padding-left: 0rem;
    flex-grow: 2; 
}

/* For content centered to the left */
.pecolumn.left {
    text-align: left;
}

/* For content centered to the right */
.pecolumn.right {
    text-align: right;
}

.peColumnCategory {
    flex: 0 0 20rem;
}

.pelement:hover .peColumnHoverArrow {
    visibility: visible; 
}

.peColumnHoverArrow {
    width: 60px; 
    flex: 0 0 60px; 
    overflow: hidden;
    visibility: hidden;
}

@media screen and (max-width: 900px) {
    .peColumnCategory, .pecolumn {
        flex: 0 0 auto;
    }
}

.hover_img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hover_img span { 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);    
    display: none; 
    z-index: 9999;     
    width: 50vw;   
    height: auto; 
    max-height: 75vh; 
    overflow: hidden;
    pointer-events: none;
}

.pelement:hover .hover_img span {
    display: block;
}

.hover_img:hover span img { 
    width: 100%;   /* Ensure the image takes the full width of its parent */
    height: auto; /* Allow the image height to adjust naturally */
    max-height: 75vh;  /* Ensuring the image doesn't exceed the height of its parent */
    object-fit: contain;  /* Ensures the image scales properly while staying within its boundaries */
}

@media screen and (max-width: 600px) {
    .hover_img:hover span { 
        display: none !important;  /* Using !important to ensure this style is applied */
    }
    .hover_img:hover span img { 
        display: none !important;  /* Using !important to ensure this style is applied */
    }
}

/* -------------------- Responsive Specific Classes -------------------- */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 900px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* -------------------- Gallery Slider General -------------------- */

.overlay {
    z-index: 999;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    height: calc(100vh - 6rem);   
}

.left-overlay {
    left: 0;
    cursor: url('../../assets/icons/arrow_left.svg'),auto;
}

.right-overlay {
    right: 0;
    cursor: url('../../assets/icons/arrow_right.svg'),auto;
}

.fleft {
    float: left;
}

.fright {
    float: right;
}

/* -------------------- Gallery Slider Landing Page -------------------- */

.landingPageSlide {
    width: 100%;
    height: calc(100vh - 6rem);   
    overflow: hidden;
}

.landingPageSlide img {
    width:100%;
    height:100%;
    object-fit: contain;
}

.landingPageSlideTextContainer {
    min-height: 2rem;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap; 
}

.landingPageSlideEnumeration {
    min-height: 2rem;
    min-width: 20rem;
    transform: translateY(4px); /* Shifts the text down by 4px to ensure a clean zero-line */
}

.landingPageSlideText {
    min-height: 2rem;
    min-width: 20rem;
    transform: translateY(4px); 
}

@media screen and (max-width: 600px) {
    .landingPageSlide {
        height: calc(100vh - 12rem);   
    }
    .landingPageSlideTextContainer {
        justify-content: center;
    }
    .landingPageSlideEnumeration{
        width: 100%;
    }
}

/* -------------------- Gallery Slider Project Page -------------------- */

.projectPageSlide {
    width: 100%;
    height: calc(100vh - 6rem);   
    overflow: hidden;
}

.projectPageSlide img {
    width:100%;
    height:100%;
    object-fit: contain;
}

.projectPageSlideTextContainer {
    min-height: 2rem;
}

.projectPageSlideEnumeration {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    float: left;
    min-height: 2rem;
    min-width: 7rem;
    transform: translateY(4px); /* Shifts the text down by 4px to ensure a clean zero-line */
}

.projectPageSlideText {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    float: left;
    min-height: 2rem;
    min-width: 20rem;
    transform: translateY(4px); 
}

.projectPageSlideLink {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    min-height: 2rem;
    min-width: 10rem;
    transform: translateY(4px); 
}

@media screen and (max-width: 900px) {
    .projectPageSlide {
        height: calc(100vh - 20rem);   
    }
    .projectPageSlideTextContainer {
        justify-content: center;
    }
    .projectPageSlideEnumeration{
        width: 100%;
        min-height: 1rem;
    }
}

.galleryText{
    width: 100%;
    height: calc(100vh - 10.5rem);    
    display: -webkit-box;
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: auto;
    padding-left: 10%;
    padding-right: 10%;
}

.galleryOverview {
    width: 100%;
    height: calc(100vh - 10.5rem);    
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: auto;
}

.galleryOverview >div{
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center;
}

.galleryOverview img {
    max-width: 15vw;
    max-height: 20vh;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
    position: relative; 
}

.galleryGoToText:hover{
    cursor: pointer;
}

.galleryOverviewText {
}

.galleryOverviewText >div{
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mobileProjectText {
    width: 100%;
    text-align: left;
    margin-bottom: 2rem;
}

/* -------------------- Projects / Index -------------------- */

.projectsIndexGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.projectsIndexGrid a {
    display: flex;
    justify-content: center;
    align-items: baseline; 
    width: 100%;
    height: 100%; 
    text-decoration: none;
}

.projectsIndexGrid img {
    display: block;
    max-width: 100%; 
    height: auto; 
    object-fit: cover; 
}

@media (max-width: 900px) { 
    .projectsIndexGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* -------------------- About -------------------- */
.about {
    display: grid;
    grid-template-columns: calc(20rem + 60px) 1fr;
    list-style: none;
    margin-top: 2rem;
}

.abelement {
    display: flex;
    justify-content: space-between;
    position: relative; 
    border-top: 1px solid #5A5A5A;
    min-height: 3rem;
    padding: 0.5rem;
    padding-bottom: 1rem;
    padding-left: 0rem;
}

.abelement.left {
    padding-left: 0;
    text-align: left; 
}

.abelement.right {
}

@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr; 
    }
}

/* -------------------- Imprint & AGB -------------------- */
.column {
    float: left;
    width: 50%;
}

.row {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.columnLeft{
    padding-right: 6rem;
}

.columnRight{
    padding-left: 6rem;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    clear: both;
}

@media screen and (max-width: 900px) {
    .column {
        width: 100%;
        padding: 0;
        padding-bottom: 6rem;
    }
    .row:after 
    {
    }
}
