/* Shared product photography: full images, stable framing and touch controls. */
.product-showcase-card .fotorama.h,
.product-showcase-card .gt-product-gallery {
    width: 100%;
    min-width: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
}

/* Keep the original photographs usable before JavaScript loads. */
.product-showcase-card .fotorama.h > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    margin-bottom: 12px;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    object-fit: contain;
}

.gt-product-gallery button,
.gt-gallery-dialog button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gt-gallery-stage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #fafbfc;
    overflow: hidden;
    cursor: zoom-in;
}

.gt-gallery-stage .gt-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.gt-gallery-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fffffff2;
    color: #12366b;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px #0e2b5c0c;
    pointer-events: none;
}

.gt-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 3px 2px 6px;
    margin: 12px -2px 0;
    scrollbar-width: thin;
    scrollbar-color: #c5ceda transparent;
}

.gt-gallery-thumbnail {
    display: block;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 4px;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.gt-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.gt-gallery-thumbnail[aria-pressed="true"] {
    border: 2px solid #12366b;
    padding: 3px;
    box-shadow: 0 0 0 2px #12366b0a;
}

.gt-gallery-thumbnail:hover {
    border-color: #12366b;
}

.gt-product-gallery button:focus-visible,
.gt-gallery-dialog button:focus-visible {
    outline: 3px solid #d89b23;
    outline-offset: 3px;
}

.gt-gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.gt-gallery-count {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: #12366b;
}

.gt-gallery-dialog {
    width: min(1040px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    margin: auto;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #0e2b5c;
    box-shadow: 0 24px 100px #0005;
    overflow: auto;
}

.gt-gallery-dialog::backdrop {
    background: #0c1938cc;
}

html:has(.gt-gallery-dialog[open]),
body.gt-gallery-open {
    overflow: hidden;
}

.gt-gallery-dialog-shell {
    position: relative;
    padding: 24px;
}

.gt-gallery-dialog-title {
    margin: 0 52px 18px 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.gt-gallery-dialog .gt-gallery-large-image {
    display: block;
    width: 100%;
    height: min(68vh, 720px);
    height: min(68dvh, 720px);
    object-fit: contain;
    object-position: center;
    background: #fafbfc;
    border-radius: 12px;
}

.gt-gallery-close,
.gt-gallery-previous,
.gt-gallery-next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dfe5ec;
    border-radius: 50%;
    background: #fff;
    color: #12366b;
    font-size: 26px !important;
    line-height: 1;
    box-shadow: 0 2px 10px #12366b12;
    cursor: pointer;
    z-index: 1;
}

.gt-gallery-close { top: 14px; right: 14px; }
.gt-gallery-previous { top: 50%; left: 32px; }
.gt-gallery-next { top: 50%; right: 32px; }
.gt-gallery-dialog [hidden],
.gt-product-gallery [hidden] { display: none !important; }

.gt-gallery-caption {
    margin: 16px 0 0;
    text-align: center;
    color: #52647c;
    font-size: 13px;
    line-height: 1.5;
}

.gt-gallery-error {
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: 24px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.gt-gallery-dialog .gt-gallery-error {
    height: min(68vh, 720px);
}

@media (max-width: 991px) {
    .product-showcase-card .gt-product-gallery {
        max-width: 560px;
        margin: 0 auto 28px;
    }

    .product-showcase-card .product-details-col {
        padding-left: 15px !important;
    }
}

@media (max-width: 575px) {
    .inner .product-showcase-card {
        padding: 16px 14px;
    }

    .gt-gallery-stage { padding: 8px; border-radius: 12px; }
    .gt-gallery-thumbnails { gap: 8px; }
    .gt-gallery-thumbnail { width: 58px; height: 58px; flex-basis: 58px; }
    .gt-gallery-meta { font-size: 11px; }
    .gt-gallery-dialog { width: calc(100% - 16px); border-radius: 12px; }
    .gt-gallery-dialog-shell { padding: 18px 12px; }
    .gt-gallery-dialog-title { font-size: 16px; }
    .gt-gallery-previous { left: 16px; }
    .gt-gallery-next { right: 16px; }
}
