@font-face { 
    font-family: "Michroma Regular"; 
    src: url("Michroma-Regular.ttf") format("truetype"); 
    font-weight: normal; 
    font-style: normal; 
} 
 
@font-face { 
    font-family: "Pliant Expanded"; 
    src: url("PliantExpanded.ttf") format("truetype"); 
    font-weight: normal; 
    font-style: normal; 
} 
 

/* ======================================== 
   RESET 
======================================== */ 
 
html, 
body { 
    margin: 0; 
    padding: 0; 
} 
 
body { 
    background: white; 
    color: black; 
} 
 

/* ======================================== 
   HUSNA SAMER NAVIGATION LINK
======================================== */ 
 
body > a { 
    position: absolute; 
 
    top: 30px; 
    left: 40px; 
 
    color: black; 
    text-decoration: none; 
 
    font-family: "Michroma Regular", sans-serif; 
    font-size: 18px; 
    font-weight: normal; 
 
    z-index: 10; 
} 
 

/* ======================================== 
   NAVIGATION 
======================================== */ 
 
.nav { 
    position: absolute; 
 
    top: 30px; 
    right: 40px; 
 
    display: flex; 
    gap: 35px; 
 
    z-index: 10; 
} 
 
.nav a { 
    color: black; 
    text-decoration: none; 
 
    font-family: "Michroma Regular", sans-serif; 
    font-size: 18px; 
    font-weight: normal; 
} 


/* ========================================
   WORK INFORMATION
======================================== */

.work-info {
    text-align: right;

    padding-left: 80px;
    padding-right: 0;

transform: translate(-80px, 75px);

    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.4;
}



/* ========================================
   WORK IMAGE
======================================== */

.work-image {
    width: 500px;
    margin-left: 80px;
}

.work-image img {
    display: block;
    width: 500px;
    height: auto;
    transform: translateY(220px);
}

/* ========================================
   DETAILS
======================================== */

.work-details {
    margin-bottom: 2px;
}


/* ========================================
   ENQUIRE BUTTON
======================================== */

.enquire-button {
    display: inline-block;

    margin-top: 10px;
    padding: 8px 18px;

    border: 1px solid black;
    background: transparent;

    color: black;
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1;

    cursor: pointer;
}

.enquire-button:hover {
    background: black;
    color: white;
}

/* ========================================
   GRID TOGGLE
======================================== */

#grid-toggle {
    position: fixed;
    top: 75px;
    right: 40px;

    width: 18px;
    height: 18px;
    padding: 0;

    border: none;
    background: none;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;

    cursor: pointer;
}

#grid-toggle span {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid black;
    box-sizing: border-box;

    transition: transform 0.3s ease;
}

#grid-toggle:hover span {
    transform: scale(1.08);
}


/* ========================================
   GRID VIEW TRANSITION
======================================== */

#works-container {
    transition: all 0.6s ease;
}

.work-item {
    transition:
        width 0.6s ease,
        margin 0.6s ease,
        transform 0.6s ease;
}

.work-image {
    transition:
        width 0.6s ease,
        margin 0.6s ease;
}

.work-image img {
    transition:
        width 0.6s ease,
        transform 0.6s ease;
}

.work-info {
    transition:
        opacity 0.4s ease,
        transform 0.6s ease;
}


/* ========================================
   GRID VIEW
======================================== */

body.grid-view #works-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 140px 40px 40px;
}

body.grid-view .work-item {
    display: block;
    margin: 0;
    width: 100%;
}

body.grid-view .work-image {
    width: 100%;
    margin: 0;
}

body.grid-view .work-image img {
    width: 100%;
    height: auto;
    transform: none;
}

body.grid-view .work-info {
    opacity: 0;
    pointer-events: none;
}


#image-modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(255, 255, 255, 0.95);

    align-items: center;
    justify-content: center;

    z-index: 1000;

    cursor: zoom-out;

    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-modal img {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    transform: scale(0.92);
    transition: transform 0.4s ease;
}

#image-modal.active {
    opacity: 1;
}

#image-modal.active img {
    transform: scale(1);
}

















@media (max-width: 700px) {

    body > a {
        top: 20px;
        left: 20px;
        font-family: "Michroma Regular", sans-serif;
        font-size: 11px;
        line-height: 1;
    }

    .nav {
        top: 20px;
        right: 20px;
        gap: 10px;
    }

    .nav a {
        font-family: "Michroma Regular", sans-serif;
        font-size: 11px;
        line-height: 1;
    }


    /* GRID BUTTON */

    #grid-toggle {
        top: 60px;
        right: 20px;
    }

  .work-item {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 120px 0 100px;
        padding: 0 20px;
    }

    .work-image {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 20px;
        background: #f5f5f5;
    }

    .work-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
    }

    .work-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 0;
        margin-top: 25px;
        margin-left: 15px;
        transform: none;
        font-size: 14px;
        line-height: 1.4;
    }

    /* ENQUIRE BUTTON */

    .enquire-button {
        font-size: 12px;
        padding: 8px 16px;
    }


    /* GRID VIEW */

    body.grid-view #works-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        margin: 110px 20px 20px;
    }

    body.grid-view .work-item {
        width: 100%;
        margin: 0;
    }

    body.grid-view .work-image {
        width: 100%;
        margin: 0;
    }

    body.grid-view .work-image img {
        width: 100%;
        transform: none;
    }


    /* IMAGE ZOOM */

    #image-modal {
        padding: 20px;
        box-sizing: border-box;
    }

    #image-modal img {
        max-width: 100%;
        max-height: 85vh;
    }

}