/* Code for main parts/sections */
body {
    margin: 0;
}
main {
    padding: 10px;
    box-sizing: border-box;
}
#gallery-body {
    display: none;
}
.gallery {
    width: 45%;
}

/* Carousel Code */
#carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    width: calc(100vw - 20px);
    max-width: 100vw;
    box-sizing: border-box;
    flex: 1 1 auto;
}
#carousel-img {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    background: #fff;
    max-width: 95vw;
    max-height: calc(100vh - 180px);/* 180px allows for header, buttons, margins */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
/* Carousel Button Code */
#carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
    flex-shrink: 0;
}
#prev-btn, #next-btn {
    font-size: 1.1em;
    padding: 8px 19%;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid hsl(0, 0%, 13%);
    background: white;
    transition: background 0.2s, color 0.2s;
}
#prev-btn:hover, #next-btn:hover {
    background: hsl(0, 0%, 93%);
    color: hsl(0, 0%, 20%);
}

/* Scaling for Mobile Devices */
@media (max-width: 700px) {
    #carousel {
        margin: 16px 0;
    }
    #carousel-img {
        max-height: calc(100vh - 160px);
    }
    #carousel-buttons {
        gap: 8px;
    }
    #prev-btn, #next-btn {
        padding: 10px 19%;
    }
}