.product-content {
    display: flex;
    padding-top: calc(7vh + 1em);
    margin-left: 22vw;
}

.product-details {
    width: 25vw;
    padding-left: 0;
    padding-right: 5vw;
    position: sticky;
    top: calc(7vh + 1em);
    height: fit-content;
}

.product-details h2 {
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 16pt;
    margin: 1em 0 2em 0;
}

.product-image {
    width: 45vw;
    padding-right: 3vw;
    padding-top: 1em;
}

.slideshow-container {
    position: relative;
}

.product-image .slide {
    width: 100%;
    height: auto;
    margin-bottom: 2em;
}

.slide-overlay-left, .slide-overlay-right {
    cursor: pointer;
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
}

.slide-overlay-left {
    left: 0;
}

.slide-overlay-right {
    right: 0;
}

.purchase-info {
    margin-top: 7.5em;
    margin-bottom: 2em;
}

.purchase-info p {
    margin: 0;
}

.purchase-info .add-to-cart {
    margin-bottom: 1em;
}

.purchase-info p:first-child {
    font-weight: bold;
    margin-bottom: 1em;
}

.purchase-controls {
    display: flex;
    gap: 1em;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    background: transparent;
}

.quantity-btn {
    background: transparent;
    border: none;
    padding: 0.5em 0.8em;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.2s;
    min-width: 40px;
}

.quantity-btn:hover {
    background-color: #000;
    color: #fff;
}

.quantity-display {
    padding: 0.25em 0.5em;
    min-width: 20px;
    text-align: center;
    font-family: inherit;
    font-size: inherit;
}

.add-to-cart {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 0.5em 2em;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.2s;
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.add-to-cart:hover {
    background-color: transparent;
    color: #000;
    text-decoration: none;
}

.contact-info-text {
    font-size: 0.7em;
    color: #666;
    white-space: nowrap;
    margin: 0;
}

.contact-info-text a {
    text-decoration: underline;
}


.work-images {
    width: 45vw;
    padding-right: 3vw;
    padding-top: 1em;
}

.work-images img {
    width: 100%;
    margin-bottom: 2em;
    cursor: pointer;
}

.half-width-container {
    display: flex;
    gap: 2em;
}

.half-width-container img {
    width: calc(50% - 1em);
}

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 100;
    cursor: pointer;
}

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
        padding: 0 5vw;
        padding-top: calc(7vh + 2em);
        margin-left: 0;
    }

    .product-details {
        flex: none;
        width: 100%;
        padding-left: 5vw;
        padding-right: 5vw;
        margin-bottom: 2em;
        position: static;
        box-sizing: border-box;
    }

    .work-images {
        flex: none;
        width: 100%;
        padding-left: 5vw;
        padding-right: 5vw;
        box-sizing: border-box;
        display: block !important;
    }

    .work-images img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 2vw auto !important;
    }

    .purchase-info {
        margin-top: 2em;
        margin-bottom: 2em;
    }

    .add-to-cart {
        width: 200px;
    }

    .half-width-container {
        flex-direction: column;
        gap: 1em;
    }

    .half-width-container img {
        width: 100%;
    }
}