@charset "UTF-8";
/* ==========================================================================
   Products – design viewer (Standard MFC Size + collections)
   /2024/products/gallery.css · same look as the old stylep.css:
   full-screen picture, name in the middle, round arrows, thumbnails below.
   ========================================================================== */

.pg-viewer {
    position: relative;
    height: 100vh;
    height: 100svh;                 /* phones: exclude browser bars */
    min-height: 420px;
    overflow: hidden;
    color: #fff;
    background: #121212;
}
.pg-bg {
    position: absolute;
    inset: 0;
    background: #121212 center / cover no-repeat;
    transition: opacity .35s ease;
}
.pg-bg.is-fading { opacity: .25; }

/* Name in the middle */
.pg-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: calc(100% - 160px);          /* never runs under the arrows */
    text-align: center;
    transform: translate(-50%, -50%);
    text-shadow: 0 2px 5px rgba(0, 0, 0, .7);
    pointer-events: none;
}
.pg-title { margin: 0; font-size: 4rem; line-height: 1.15; color: #fff; }

/* Round arrow buttons (was "+" on both sides) */
.pg-nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 56px;
    height: 56px;
    padding: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, .5);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
    transform: translateY(-50%);
    transition: background-color .2s;
}
.pg-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transition: border-color .2s;
}
.pg-prev { left: 20px; }
.pg-next { right: 20px; }
.pg-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pg-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.pg-nav:hover,
.pg-nav:focus-visible { background: rgba(255, 255, 255, .85); }
.pg-nav:hover::before,
.pg-nav:focus-visible::before { border-color: #000; }

/* Thumbnails */
.pg-thumbs {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    z-index: 15;
    display: flex;
    gap: 5px;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 4px 4px 8px;
    overflow-x: auto;
    scrollbar-width: thin;                      /* long collections scroll sideways */
    scrollbar-color: rgba(255, 255, 255, .6) transparent;
}
.pg-thumbs::-webkit-scrollbar { height: 4px; }
.pg-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .6); border-radius: 2px; }
.pg-thumb {
    flex: 0 0 auto;
    padding: 0;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 4px;
    transition: transform .2s;
}
.pg-thumb img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.pg-thumb:hover { transform: scale(1.1); }
.pg-thumb.is-active { outline: 2px solid #fff; outline-offset: 0; }

@media (max-width: 1399px) {
    .pg-title { font-size: 3rem; }
    .pg-thumb img { width: 50px; height: 50px; }
}
@media (max-width: 768px) {
    .pg-title { font-size: 2.5rem; }
        .pg-thumb img { width: 40px; height: 40px; }
    .pg-nav { width: 44px; height: 44px; }
    .pg-prev { left: 10px; }
    .pg-next { right: 10px; }
}
@media (max-width: 600px) {
    .pg-title { font-size: 1.75rem; }
    .pg-caption { width: calc(100% - 120px); }
    .pg-thumbs { gap: 3px; }
    .pg-thumb img { width: 30px; height: 30px; }
}