/*.gallery {*/
/*    position: relative;*/
/*    width: 20rem;*/
/*}*/

/*.gallery img {*/
/*    width: 20rem;*/
/*    height: auto;*/
/*    object-fit: contain;*/
/*    border-radius: 0.5rem;*/
/*    background: #111;*/
/*    transition: opacity 0.35s ease;*/
/*    cursor: zoom-in;*/
/*}*/

.gallery.fade img {
    opacity: 0;
}

/*.gallery-btn {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    background: rgba(0,0,0,0.4);*/
/*    border: none;*/
/*    color: white;*/
/*    font-size: 2rem;*/
/*    cursor: pointer;*/
/*    padding: 0.6rem 1rem;*/
/*    border-radius: 0.4rem;*/
/*    transition: background 0.3s ease;*/
/*}*/

.gallery-btn:hover {
    background: rgba(255, 61, 36, 0.8);
}

/*.prev { left: 1rem; }*/
/*.next { right: 1rem; }*/

/*.gallery-counter {*/
/*    position: absolute;*/
/*    top: 1rem;*/
/*    right: 1rem;*/
/*    background: rgba(0,0,0,0.5);*/
/*    color: white;*/
/*    padding: 0.3rem 0.6rem;*/
/*    border-radius: 0.3rem;*/
/*    font-size: 0.9rem;*/
/*}*/

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-dots span {
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-dots span.active {
    background: #ff3d24;
}

.zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    cursor: grab;
    transform: scale(0.85);
    transition: transform 0.35s ease;
}

.zoom-overlay.active .zoom-image {
    transform: scale(1);
}

.zoom-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.zoom-close:hover {
    color: #ff3d24;
}

body.zoom-lock {
    overflow: hidden;
}

/*.advertisement-wrap {*/
/*    display: flex;*/
/*    gap: 5rem;*/
/*}*/

.advertisement-title {
    text-align: center;
    margin: 2rem auto;
    max-width: 70rem;
}

.advertisement-wrap {
    display: flex;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: flex-start;
    justify-content: center;
    max-width: 90rem;
    margin: 0 auto 4rem;
}

.advertisement-wrap > div:last-child {
    max-width: 42rem;
    line-height: 1.6;
}

.gallery {
    position: relative;
    width: min(100%, 24rem);
    flex: 0 0 min(100%, 24rem);
}

.gallery img {
    width: 100%;
    max-height: 30rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #111;
    transition: opacity 0.35s ease;
    cursor: zoom-in;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: clamp(1.4rem, 4vw, 2rem);
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    transition: background 0.3s ease;
}

.prev {
    left: 0.6rem;
}

.next {
    right: 0.6rem;
}

.gallery-counter {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
}

.modal-content {
    width: min(400px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-sizing: border-box;
}

.toast {
    position: fixed;
    z-index: 4000;
}

@media (max-width: 768px) {
    .advertisement-title {
        text-align: left;
        margin: 1.5rem 0;
    }

    .advertisement-wrap {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .advertisement-wrap > div:last-child {
        width: 100%;
        max-width: none;
    }

    .gallery {
        width: 100%;
        flex-basis: auto;
    }

    .gallery img {
        max-height: 70vh;
    }

    .gallery-dots {
        flex-wrap: wrap;
    }

    .order-btn {
        width: 100%;
        max-width: 18rem;
        display: block;
        margin: 2rem auto;
    }
}

@media (max-width: 480px) {
    .gallery-btn {
        padding: 0.35rem 0.6rem;
    }

    .zoom-close {
        top: 1rem;
        right: 1rem;
    }

    .zoom-image {
        max-width: 96%;
        max-height: 82%;
    }
}