* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, .side-name, .contact-text {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
    background-color: rgb(248, 248, 248);
    color: rgb(14, 14, 14);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    overflow-x: hidden;
    
}

#ui-elements {
    display: block;
}

.side-name {
    position: fixed;
    top: 40px;
    left: 40px;
    width: max-content; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem; 
    letter-spacing: 1px;
    text-transform: lowercase;
    z-index: 8000;
    color: black;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none; 
    -webkit-user-select: none;
    pointer-events: auto; 
}

.side-name:hover {
    opacity: 0.3 !important;
}

.contact-button-wrapper {
    position: fixed;
    bottom: 44px;
    right: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 6000;
}

.contact-text {
    font-family: 'Montserrat', sans-serif;
    text-transform: lowercase; 
    font-weight: 600; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    color: black;
}

.dot-trigger {
    width: 25px;
    height: 25px;
    background-color: black;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.contact-button-wrapper:hover .dot-trigger {
    transform: scale(1.1);
}

.composition {
    max-width: 600px; 
    margin: 100px auto; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.composition p {
    cursor: pointer;
    margin: 0;
    line-height: 1.2;
    transition: opacity 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: clamp(1.5rem, 5vw, 2.3rem);
}

.thin { 
    font-weight: 200; 
    text-transform: lowercase; 
}

.bold { 
    font-weight: 600; 
    text-transform: lowercase; 
    letter-spacing: 1px; 
}

.pos-left { text-align: left; }
.pos-right { text-align: right; }
.pos-center { text-align: center; }
.pos-indent-1 { padding-left: 15%; text-align: left; }
.pos-indent-2 { padding-right: 20%; text-align: right; }

.composition p:hover {
    opacity: 0.5;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

#expanded-img {
    max-height: 80vh;
    max-width: 100%;
    width: auto !important; 
    height: auto !important; 
    display: block;
    object-fit: contain;
}

#image-info {
    margin-top: 15px;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #141414;
    text-align: left;
    cursor: default;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 100px 0;
}

.project-gallery img {
    max-width: 70%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: default;
}

.project-info h2 {
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.popup-content {
    border: 1px solid black;
    background-color: white;
    cursor: default;
    text-align: center;
    width: 400px;
    min-height: 250px;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.popup-content h3 {
    font-size: 2.4rem;       
    font-weight: 700;     
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 5px;
}

.popup-content p {
    font-size: 1.5rem;     
    font-weight: 200;    
    margin: 0;
    letter-spacing: 2px;
}

.popup-content p a {
    color: black;
    text-decoration: none;
    transition: opacity 0.3s;
}

.popup-content p a:hover {
    opacity: 0.5;
}

.project-page-container {
    padding: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    font-family: 'Montserrat', sans-serif; 
    font-weight: 600;
    text-decoration: none;
    color: black;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    display: inline-block;
    margin-bottom: 30px;
}

.back-button:hover {
    opacity: 0.4;
}

.project-gallery-vertical img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    display: block;
}

@media screen and (max-width: 768px) {
    .composition {
        max-width: 90%; 
        margin: 60px auto;
    }

    .side-name {
        top: 20px;
        left: 20px;
        font-size: 1.1rem; 
    }

    .popup-content {
        width: 75%; 
        padding: 40px;
    }

    .popup-content h3 {
        font-size: 2rem;
    }

    .image-wrapper {
        max-width: 95%; 
    }

    .contact-button-wrapper {
        right: 20px;
        bottom: 20px;
    }
}

@media (pointer: fine) {
    .overlay, .project-gallery {
        cursor: url('https://img.icons8.com/ios-glyphs/24/000000/multiply.png') 12 12, auto !important;
    }
}

@media (pointer: coarse) {
    .overlay, .project-gallery {
        cursor: default !important;
    }
}