.cc-pdp-gallery-wrap {
    position: relative;
    padding: 4px 0 18px;
}

#artworkCarousel.cc-gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.cc-gallery-shell {
    display: block;
}

.cc-gallery-shell.has-thumbs {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.cc-gallery-rail {
    min-width: 0;
    padding-top: 8px;
}

.cc-gallery-stage {
    position: relative;
    min-height: 0;
    border-radius: 32px;
    border: 1px solid rgba(184, 150, 88, 0.09);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, #f7f2e8 0%, #fbf8f3 58%, #ffffff 100%);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.04);
    overflow: hidden;
}

.cc-gallery-stage .cc-promo-badges--pdp {
    top: 16px;
    left: 16px;
}

.cc-gallery-stage .cc-promo-badge {
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.10);
}

.cc-gallery-stage .cc-promo-badge--secondary {
    background: rgba(17, 17, 17, 0.74);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.10);
}

.cc-gallery-stage__expand {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #111827;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.cc-gallery-stage__expand:hover,
.cc-gallery-stage__expand:focus {
    background: rgba(55, 65, 81, 0.94);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(17, 17, 17, 0.12);
}

.cc-gallery-stage__expand-icon {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.cc-gallery-stage__expand-icon::before,
.cc-gallery-stage__expand-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1.5px solid currentColor;
}

.cc-gallery-stage__expand-icon::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.cc-gallery-stage__expand-icon::after {
    right: 0;
    bottom: 0;
    border-left: 0;
    border-top: 0;
}

#artworkCarousel .carousel-inner {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

#artworkCarousel .item {
    width: 100%;
    height: 100%;
}

#artworkCarousel .item.active,
#artworkCarousel .item.next,
#artworkCarousel .item.prev {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
}

.cc-gallery-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 18px;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.cc-gallery-frame img {
    display: block;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 26px;
    background: transparent;
    box-shadow: none;
}

.cc-gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 32px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.cc-gallery-control {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    width: 72px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

.cc-gallery-control .glyphicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.07);
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    font-size: 18px;
    text-shadow: none;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.cc-gallery-control:hover .glyphicon,
.cc-gallery-control:focus .glyphicon {
    background: rgba(55, 65, 81, 0.92);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(17, 17, 17, 0.12);
}

.cc-gallery-thumbs {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    white-space: normal;
}

.cc-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.cc-gallery-thumbs li,
.cc-gallery-thumbs li.active {
    display: block;
    flex: 0 0 auto;
    width: 84px;
    height: 102px;
    margin: 0;
    border-radius: 22px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.cc-gallery-thumbs li {
    border: 2px solid transparent;
    box-shadow:
        0 8px 16px rgba(17, 17, 17, 0.07),
        0 0 0 1px rgba(17, 17, 17, 0.06) inset;
    opacity: 0.68;
    transform: translateY(0);
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cc-gallery-thumbs li:hover,
.cc-gallery-thumbs li:focus {
    opacity: 0.94;
    transform: translateY(-1px);
}

.cc-gallery-thumbs li.active {
    border: 2px solid #b89658;
    opacity: 1;
    box-shadow:
        0 12px 22px rgba(17, 17, 17, 0.08),
        0 0 0 3px rgba(184, 150, 88, 0.14);
}

.cc-gallery-modal {
    padding: 0 !important;
    background: rgba(246, 243, 238, 0.68);
    backdrop-filter: blur(12px);
}

.cc-gallery-modal .modal-dialog,
.cc-gallery-modal__dialog {
    width: min(1440px, calc(100vw - 28px));
    max-width: none;
    min-height: calc(100vh - 20px);
    margin: 10px auto;
    display: flex;
    align-items: stretch;
}

.cc-gallery-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    color: #111827;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 18px 0 24px;
}

.cc-gallery-modal__chrome {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
}

.cc-gallery-modal__status {
    display: inline-flex;
    align-items: center;
}

.cc-gallery-modal__counter {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.84);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 22px rgba(17, 17, 17, 0.06);
}

.cc-gallery-modal__counter:empty {
    display: none;
}

.cc-gallery-modal__close {
    position: static;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: #111827;
    font-size: 32px;
    line-height: 1;
    text-shadow: none;
    opacity: 1;
    float: none;
    transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}

.cc-gallery-modal__close:hover,
.cc-gallery-modal__close:focus {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.12);
    color: #111827;
    transform: translateY(-1px);
}

.cc-gallery-modal__stage-shell {
    display: block;
}

.cc-gallery-modal__stage-shell.has-thumbs {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.cc-gallery-modal__thumbs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 6px 0 10px 18px;
    margin: 0;
    max-height: calc(100vh - 144px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.cc-gallery-modal__thumbs::-webkit-scrollbar {
    display: none;
}

.cc-gallery-modal__thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 102px;
    border: 0;
    border-radius: 22px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(17, 17, 17, 0.08),
        0 12px 24px rgba(17, 17, 17, 0.08);
    opacity: 0.62;
    transform: translateY(0);
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.cc-gallery-modal__thumb:hover,
.cc-gallery-modal__thumb:focus {
    opacity: 0.82;
    transform: translateY(-1px);
}

.cc-gallery-modal__thumb.is-active {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px rgba(184, 150, 88, 0.92),
        0 16px 28px rgba(17, 17, 17, 0.10);
}

.cc-gallery-modal__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 156px);
    padding: 0 94px 12px;
    overflow: hidden;
}

.cc-gallery-modal__figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
}

.cc-gallery-modal__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 238px);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
    object-fit: contain;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
}

.cc-gallery-modal__caption {
    display: block;
    max-width: min(760px, 100%);
    padding: 0 12px;
    color: rgba(55, 65, 81, 0.88);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.cc-gallery-modal__caption:empty {
    display: none;
}

.cc-gallery-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    transform: translateY(-50%);
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
    transition: background-color .2s ease, transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.cc-gallery-modal__nav span {
    font-size: 34px;
    line-height: 1;
}

.cc-gallery-modal__nav:hover,
.cc-gallery-modal__nav:focus {
    background: #fff;
    color: #111827;
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.12);
}

.cc-gallery-modal__nav[disabled] {
    opacity: 0.34;
    pointer-events: none;
}

.cc-gallery-modal__nav--prev {
    left: 18px;
}

.cc-gallery-modal__nav--next {
    right: 18px;
}

@media (min-width: 1200px) {
    .product_page .row > [data-pdp-gallery-column] {
        width: 58.33333333%;
    }

    .product_page .row > [data-pdp-main-column] {
        width: 41.66666667%;
    }
}

@media (max-width: 1199px) {
    #artworkCarousel.cc-gallery-carousel {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    #artworkCarousel.cc-gallery-carousel {
        margin-bottom: 12px;
    }

    .cc-gallery-shell.has-thumbs {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cc-gallery-rail {
        order: 2;
        padding-top: 0;
    }

    .cc-gallery-stage {
        border-radius: 30px;
    }

    .cc-gallery-stage .cc-promo-badges--pdp {
        top: 14px;
        left: 14px;
    }

    .cc-gallery-stage__expand {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .cc-gallery-frame {
        padding: 16px;
    }

    .cc-gallery-control {
        width: 56px;
    }

    .cc-gallery-control .glyphicon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .cc-gallery-thumbs {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .cc-gallery-thumbs li,
    .cc-gallery-thumbs li.active {
        width: 66px;
        height: 82px;
        border-radius: 16px;
    }

    .cc-gallery-modal .modal-dialog,
    .cc-gallery-modal__dialog {
        width: calc(100vw - 12px);
        min-height: calc(100vh - 12px);
        margin: 6px auto;
    }

    .cc-gallery-modal__chrome {
        padding: 0 12px;
    }

    .cc-gallery-modal__stage-shell.has-thumbs {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cc-gallery-modal__thumbs {
        order: 2;
        flex-direction: row;
        justify-content: flex-start;
        max-height: none;
        padding: 0 14px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .cc-gallery-modal__thumb {
        width: 66px;
        height: 82px;
        border-radius: 16px;
    }

    .cc-gallery-modal__stage {
        min-height: calc(100vh - 198px);
        padding: 0 16px 18px;
    }

    .cc-gallery-modal__figure {
        gap: 14px;
    }

    .cc-gallery-modal__image {
        max-height: calc(100vh - 268px);
        border-radius: 18px;
    }

    .cc-gallery-modal__caption {
        padding: 0 6px;
        font-size: 12px;
    }

    .cc-gallery-modal__nav {
        top: auto;
        bottom: 18px;
        transform: none;
        width: 46px;
        height: 46px;
    }

    .cc-gallery-modal__nav--prev {
        left: 16px;
    }

    .cc-gallery-modal__nav--next {
        right: 16px;
    }
}
