/* ==========================================================================
   Jssor "Photos" slider skin — ported from the legacy Script-Writing.html.
   Only the unique .jssora05* (arrows) and .jssort01-99-66 (thumbnails) classes
   are styled here, so this never collides with main.css. Sprite paths point to
   the copies that sit alongside this file. Loaded only on script-writing.php.
   ========================================================================== */

/* ---- Attractive warm backdrop behind the whole Photos section ---- */
.section--photos {
    background:
        radial-gradient(85% 60% at 50% -8%, rgba(245, 232, 204, 0.55), transparent 70%),
        linear-gradient(160deg, #fbf4e6 0%, #f4e6cc 55%, #ecd6ac 100%);
}

/* The heading is set in caps here rather than typed that way, so assistive
   tech still reads "On Set" as a word. Caps in the display serif need a touch
   of tracking to stop the letters crowding. */
.section--photos .section-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Framed card around the slider. ----
   The slider is capped at 880px by ScaleSlider. To keep the mat (the visible
   border area) EQUAL on all four sides, the card's max-width is set to exactly
   880 + the mat + the border, and a FIXED (non-scaling) mat is used — so the
   slider always fills the card's content width and is never centred with an
   uneven left/right gap. box-sizing is border-box (global), so:
   880 (slider) + 24*2 (mat) + 6*2 (border) = 940. ---- */
.script-slider {
    max-width: 940px;
    margin: 0 auto;
    padding: 24px;                       /* uniform mat — identical top/right/bottom/left */
    background: #ffffff;                 /* clean white mat behind the photos */
    border: 6px solid var(--accent);     /* uniform gold border, equal on all four sides */
    border-radius: 14px;
    box-shadow: 0 26px 64px -30px rgba(70, 52, 24, 0.5);
}
/* #jssor_1's direct parent — no padding, so Jssor's ScaleSlider sizes the slider
   to the card's INNER width (clientWidth) and it never overflows the mat. */
.script-slider__stage { width: 100%; }

/* Smaller frame on phones (still uniform on all four sides). */
@media (max-width: 600px) {
    .script-slider { padding: 14px; border-width: 4px; }
}

/* ---- Neutralise the new site's global resets INSIDE the slider only, so
   Jssor's own inline pixel sizing (content-box model) is honoured. Without this
   the global `img { max-width:100% }` clamps the slide images. ---- */
#jssor_1, #jssor_1 * { box-sizing: content-box; }
#jssor_1 img { max-width: none; }

/* Soft warm gradient frame — replaces the old dark #24262e background.
   Shows behind the photos while they load and around any image that doesn't
   fill the stage, so the slider reads light and warm, never black. */
#jssor_1 {
    background: linear-gradient(135deg, #f3e7cf 0%, #fbf6ec 50%, #efd9ad 100%);
    border-radius: 10px;
}

/* ---- Arrow navigator skin 05 ---- */
.jssora05l, .jssora05r {
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    overflow: hidden;
    background-image: url(a17.png);
    background-repeat: no-repeat;
}
.jssora05l { background-position: -10px -40px; }
.jssora05r { background-position: -70px -40px; }
.jssora05l:hover { background-position: -130px -40px; }
.jssora05r:hover { background-position: -190px -40px; }
.jssora05l.jssora05ldn { background-position: -250px -40px; }
.jssora05r.jssora05rdn { background-position: -310px -40px; }

/* ---- Thumbnail navigator skin 01 ---- */
.jssort01-99-66 .p {
    position: absolute;
    top: 0;
    left: 0;
    width: 99px;
    height: 66px;
}
.jssort01-99-66 .t {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.jssort01-99-66 .w {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}
.jssort01-99-66 .c {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 95px;
    height: 62px;
    border: rgba(60, 45, 20, 0.30) 2px solid;
    border-radius: 5px;
    box-sizing: content-box;
    background: url('t01.png') -800px -800px no-repeat;
    _background: none;
}
.jssort01-99-66 .pav .c {
    top: 2px;
    _top: 0px;
    left: 2px;
    _left: 0px;
    width: 95px;
    height: 62px;
    border: var(--accent) 2px solid;
    border-radius: 5px;
    background-position: 50% 50%;
}
.jssort01-99-66 .p:hover .c {
    top: 0px;
    left: 0px;
    width: 97px;
    height: 64px;
    border: var(--accent) 1px solid;
    background-position: 50% 50%;
}
.jssort01-99-66 .p.pdn .c {
    background-position: 50% 50%;
    width: 95px;
    height: 62px;
    border: rgba(60, 45, 20, 0.30) 2px solid;
}
* html .jssort01-99-66 .c, * html .jssort01-99-66 .pdn .c, * html .jssort01-99-66 .pav .c {
    /* ie quirks mode adjust */
    width /**/: 99px;
    height /**/: 66px;
}
