body {
    overflow-x: hidden;
    font-size: 1rem;
    line-height: 1.5em;
}
.thisPage {
    color: #b8deee !important;
}

#main {
    -webkit-animation-delay: 20s;
    animation-delay: 20s;
    animation: show-content 15s linear;
    -webkit-animation: show-content 15s linear;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

#div-title-production h1 {
    font-size: clamp(20px, 3vw, 35px);
    font-weight: normal;
    font-style: italic;
    line-height: 1.6em;
    text-align: center;
    margin: 0.5em auto 1em;
}

.thisPage {
    color: #b8deee !important;
}

.production {
    display: block;
    flex-direction: column;
    gap: 100px;
    margin: 0 auto;
    width: 50%;
    padding: 20px 0;
}

.production-item img {
    width: 128%;
    height: auto;
    border: 2px solid rgb(220, 218, 218);
    box-shadow: 2px 2px 15px #bbb;
    transition: box-shadow 0.5s;
    overflow: hidden;
    margin: 2em auto;
}


.div-caption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: auto;
    text-align: center;
    margin-bottom: 6em;
}

.title-caption {
    margin: 0 0 1em;
    text-align: center;
    width: 100%;
}

.caption {
    line-height: 1.5;
    text-align: left;
}

.production-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2em auto 0.5em;
    position: relative;
}

.stack-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    aspect-ratio: 4 / 2.9;
    margin: 0 auto;
}

.stack-container img:nth-child(1) {
    top: 0;
    left: 0;
}

.stack-container img:nth-child(2) {
    top: 5%;
    left: 5%;
}

.stack-container img:nth-child(3) {
    top: 10%;
    left: 10%;
}

.stack-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    aspect-ratio: 4 / 2.9;
    margin: 0 auto;
}

.stack-container img {
    position: absolute;
    max-width: 90%;
    height: auto;
    border: 2px solid #ddd;
    box-shadow: 2px 2px 10px #bbb;
    cursor: pointer;
    transition: transform 0.5s;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    z-index: 10000;
}

.lightbox.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.lightbox img.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
}

.nav,
.close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #a2d0ea;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    background: none;
    border: none;
    outline: none;
    z-index: 10000;
}

.close {
    top: 20px;
    right: 30px;
    font-size: 40px;
    transform: none;
}
.close:hover {
    color:rgb(103, 9, 9);
    transform: none;
}

.prev {
    left: 2vw;
}
.prev:hover {
    color:#248fcc;
}

.next {
    right: 2vw;
}
.next:hover {
    color: #248fcc;
    }
   

button:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.production-container,
.production-container * {
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .production {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .nav {
        font-size: 30px;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .nav {
        font-size: 24px;
        padding: 8px;
    }
}

.production-item-row {
    display: flex;
    gap: 2em;
    margin-bottom: 8em;
}

.production-item-left {
    flex: 0 0 58%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stack-container {
    position: relative;
    width: 90%;
    aspect-ratio: 4/2.9;
}

.production-item-right {
    flex: 0 0 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .stack-container {
        width: 80%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .production-item-row {
        flex-direction: column;
    }

    .production-item-left,
    .production-item-right {
        flex: 1 1 100%;
    }

    .stack-container {
        width: 90%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .stack-container {
        width: 95%;
    }
}

.analyze-bridge {
    width: 40%;
    margin-bottom: 40%;
}

.production-item-right {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
        align-items: center;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

.div-caption {
    display: block;
    text-align: center;
    margin-bottom: 2em;
}






.production {
    padding-bottom: 120px;
    
}

#footer {
    position: relative;
    bottom: 0;
}
#main{
    margin-bottom: 5% !important;
}