/* ------------------------------------------------------------------
 * Mercante Wine Merchants — site styles
 *
 * Values here were measured from the live WordPress/Oxygen site so the
 * rebuild matches it. Layout is Bootstrap 5.3; this file supplies the
 * palette, type scale and the handful of section rules Bootstrap has
 * no opinion about.
 * --------------------------------------------------------------- */

/* ------------------------------------------------------------------
 * Typefaces, self-hosted
 *
 * Open Sans, Roboto and Source Sans Pro used to load from
 * fonts.googleapis.com. They are served from site/css/fonts/ instead,
 * so the site depends on nothing it does not ship.
 *
 * Open Sans and Roboto are variable fonts: one file covers the whole
 * weight axis, which is why they carry a range rather than a single
 * font-weight. Source Sans Pro is static, so 400 and 700 are separate
 * files. Only the latin and latin-ext subsets are kept.
 * --------------------------------------------------------------- */

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-pro-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/source-sans-pro-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-pro-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/source-sans-pro-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Palette, sampled from the live site */
    --mw-navy:        #003b5c;  /* headings, nav, body copy in panels */
    --mw-footer-bg:   #002242;
    --mw-panel:       #e7e8e9;  /* header bar and the two-column panels */
    --mw-page-bg:     #f9f9f9;
    --mw-text:        #404040;
    --mw-link:        #0074db;

    /* The Oxygen container was 1120px wide with 20px gutters. */
    --mw-container:   1120px;
    --mw-gutter:      20px;
    --mw-section-y:   75px;
}

/* ------------------------------------------------------------------
 * Base
 * --------------------------------------------------------------- */

body {
    font-family: 'Open Sans', -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mw-text);
    background-color: var(--mw-page-bg);
}

/* The site's container is narrower than any Bootstrap breakpoint
 * default, and its gutter is 20px rather than 12px. */
.container {
    max-width: var(--mw-container);
    padding-left: var(--mw-gutter);
    padding-right: var(--mw-gutter);
}

.mw-section {
    padding-top: var(--mw-section-y);
    padding-bottom: var(--mw-section-y);
}

/* Interior pages nest their content inside a second wrapper section,
 * which doubles the vertical padding to 150px. */
.mw-section--inset {
    padding-top: calc(var(--mw-section-y) * 2);
    padding-bottom: calc(var(--mw-section-y) * 2);
}

/* Every content image scales with its column. */
.mw-section img {
    max-width: 100%;
    height: auto;
}

.mw-hero .container {
    padding-top: 11px;
    padding-bottom: 11px;
}

.mw-hero img {
    margin: 22px 0 11px;
}

/* ------------------------------------------------------------------
 * Header
 * --------------------------------------------------------------- */

.mw-header {
    background-color: var(--mw-panel);
    border-bottom: 1px dotted var(--mw-navy);
    padding-bottom: 3px;
}

/* The original's header box: a 114px row sitting 3px down, over the
 * 3px padding and 1px rule that close the bar at 121px overall. */
.mw-header .container {
    min-height: 117px;
    padding-top: 3px;
}

/* The mark is not centred in the bar — it hangs 16px from the top. */
.mw-logo {
    align-self: flex-start;
    margin: 16px 0 0;
}

.mw-logo img {
    width: 93px;
    height: 92px;
}

/* Nav links: 16px/500 with the site's wide 4px tracking. The tracking
 * adds a trailing space to each label, so the right padding is trimmed
 * to keep the words optically centred. */
.navbar-nav.mw-nav .nav-link,
.navbar-nav.mw-nav .dropdown-toggle {
    font-size: 16px;
    font-weight: 500;
    color: var(--mw-navy);
    letter-spacing: 4px;
    padding: 0 11px;
    white-space: nowrap;
    background: none;
    border: 0;
}

.mw-nav .nav-link:hover,
.mw-nav .nav-link:focus,
.mw-nav .dropdown-toggle:hover {
    color: var(--mw-navy);
    opacity: .75;
}

/* The live site's parent items carry no caret. */
.mw-nav .dropdown-toggle::after {
    display: none;
}

.mw-nav .dropdown-menu {
    background-color: var(--mw-panel);
    border: 1px solid rgba(0, 59, 92, .2);
    border-radius: 0;
    margin-top: 0;
    padding: .25rem 0;
}

.mw-nav .dropdown-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--mw-navy);
    letter-spacing: 1px;
    padding: .4rem 1rem;
}

.mw-nav .dropdown-item:hover,
.mw-nav .dropdown-item:focus {
    background-color: rgba(0, 59, 92, .08);
    color: var(--mw-navy);
}

/* Open the dropdowns on hover at desktop widths, as the original does. */
@media (min-width: 992px) {
    .mw-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Menu and button sit together against the right edge. */
    .mw-header-collapse {
        flex-grow: 0;
        margin-left: auto;
    }

    .mw-nav > li {
        margin: 0 11px;
    }

    .mw-header-right {
        flex: 0 0 auto;
    }
}

/* Between the lg breakpoint and 1200px the bar is ~77px short of holding
 * the logo, the menu and the 187px button at full spacing, so the button
 * was clipped off the right edge. Close the gaps between the items rather
 * than touch the type — the 4px tracking still holds the labels apart. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mw-nav > li {
        margin: 0 3px;
    }

    .navbar-nav.mw-nav .nav-link,
    .navbar-nav.mw-nav .dropdown-toggle {
        padding: 0 9px;
    }
}

/* "PURCHASE INQUIRY" — 1px navy outline, 187x48 on the live site. */
.mw-btn-inquiry {
    display: inline-block;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mw-navy);
    text-align: center;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid var(--mw-navy);
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
}

.mw-btn-inquiry:hover,
.mw-btn-inquiry:focus {
    background-color: var(--mw-navy);
    color: #fff;
}

.mw-nav-toggle {
    color: var(--mw-navy);
    border-color: rgba(0, 59, 92, .4);
}

/* ------------------------------------------------------------------
 * Panels — the alternating image / copy sections
 * --------------------------------------------------------------- */

.mw-panel {
    background-color: var(--mw-panel);
}

.mw-panel-body {
    padding: var(--mw-gutter);
}

/* Copy inside the panels is Roboto, noticeably more open than the
 * body default: 18px on a 45px line. */
.mw-panel-body p {
    font-family: Roboto, 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 45px;
    color: var(--mw-navy);
    margin-bottom: 1rem;
}

.mw-panel-body p:last-child {
    margin-bottom: 0;
}

.mw-panel-body h2 {
    font-family: Roboto, 'Open Sans', sans-serif;
    font-size: 43px;
    font-weight: 200;
    line-height: 64.5px;
    color: var(--mw-navy);
    /* The original drops the heading 86px into the panel. */
    margin: 86px 0 0;
}

/* The panel image fills its half of the row edge to edge. */
.mw-panel-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Interior pages run a tighter scale than the home page: 34px/51
 * headings over 18px/36 copy. */
.mw-panel-body--tight h2 {
    font-size: 34px;
    line-height: 51px;
    margin: 51px 0 34px;
}

.mw-panel-body--tight p {
    font-size: 18px;
    line-height: 36px;
    margin-bottom: 18px;
}

/* The two label sections separate paragraphs with a full blank line
 * rather than a half-line margin. */
.mw-copy-spaced p {
    margin-bottom: 36px;
}

/* Those same two panels carry a lot less copy than the Cara Mia one
 * beside a much taller bottle shot, so the shared 20px gutter leaves
 * the text looking pinned to the panel edge. Twice the gutter, and a
 * little more air under the heading, evens the three panels out. */
.mw-panel-body--tight.mw-copy-spaced {
    padding: calc(var(--mw-gutter) * 2);
}

.mw-panel-body--tight.mw-copy-spaced h2 {
    margin-bottom: 42px;
}

/* Bottle shots are scaled non-proportionally by the original; the
 * explicit ratios reproduce that rather than correcting it. */
.mw-bottle-shot {
    width: 244px;
    max-width: 100%;
    height: auto;
    object-fit: fill;
    /* The bottle is the tallest thing in its row, so it sets the panel
     * height and would otherwise sit flush against the grey top and
     * bottom edges. Cara Mia's label shot is inset 82px from the top;
     * matching that on both ends gives the two label panels the same
     * breathing room. */
    margin-top: 82px;
    margin-bottom: 82px;
}

.mw-bottle-shot--black { aspect-ratio: 244 / 851; }
.mw-bottle-shot--blue  { aspect-ratio: 244 / 760; }

.mw-label-shot {
    width: 486px;
    max-width: 100%;
    margin-top: 82px;
}

.mw-portrait {
    width: 250px;
    max-width: 100%;
}

.mw-portrait-wrap {
    margin-top: 33px;
    margin-bottom: 0;
    text-align: center;
}

/* A media column: image centred on the panel background. */
.mw-panel-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mw-quote {
    margin-top: 16px;
    padding: 0 40px;
    font-size: 16px;
    line-height: 25.6px;
    color: rgb(35, 35, 45);
    text-align: center;
    margin: 0;
}

.mw-quote-cite {
    font-size: 16px;
    line-height: 25.6px;
    color: rgb(35, 35, 45);
    text-align: center;
    margin: 16px 0 0;
}

/* ------------------------------------------------------------------
 * Click-through card (Cara Mia)
 *
 * A navy band with the card overlapping it. The overlap is done with
 * a relative offset, not a negative margin, so the column keeps its
 * full 580px height exactly as the original does.
 * --------------------------------------------------------------- */

.mw-card {
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.mw-card-band {
    height: 110px;
    background-color: var(--mw-footer-bg);
}

.mw-card-avatar {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    /* 60x80 is the portrait itself — it matches the img's width and
     * height attributes and the source file's 573x760 aspect. The white
     * ring sits outside that, so the box has to measure content-box:
     * under Bootstrap's global border-box the 15px border eats into the
     * 60x80 instead, leaving a 30x50 image that object-fit: cover then
     * crops to the wrong shape. */
    box-sizing: content-box;
    width: 60px;
    height: 80px;
    border: 15px solid #fff;
    border-radius: 40px;
    object-fit: cover;
    z-index: 2;
}

.mw-card-body {
    position: relative;
    top: -23px;
    background-color: #fff;
    border-radius: 3% 3% 0 0;
    padding: 20px;
    text-align: center;
}

.mw-card-body h2 {
    font-family: 'Source Sans Pro', 'Open Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #111;
    text-align: center;
    margin: 54px 0 0;
}

.mw-card-body p {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    text-align: center;
    margin: 16px 0;
}

.mw-card-body p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Video gallery
 *
 * Two 510px columns with 10px gutters, matching the original grid.
 * --------------------------------------------------------------- */

.mw-vgrid {
    display: grid;
    /* The original's tiles are 510px in a 1030px grid, not a full
     * 1040px split, so the row is centred with 5px either side. */
    grid-template-columns: repeat(2, minmax(0, 510px));
    justify-content: center;
    gap: 10px;
    align-items: start;
    /* Trailing space the original's gallery wrapper leaves below. */
    margin-bottom: 29px;
}

.mw-vtile {
    position: relative;
    display: block;
    line-height: 0;
}

.mw-vtile img {
    width: 100%;
    height: auto;
}

/* Play affordance — the original relied on the lightbox alone. */
.mw-vplay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 34, 66, .72);
    transition: background-color .15s ease;
}

.mw-vplay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

.mw-vtile:hover .mw-vplay {
    background: rgba(0, 34, 66, .92);
}

@media (max-width: 767.98px) {
    .mw-vgrid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------
 * Forms (contact, purchase inquiry)
 * --------------------------------------------------------------- */

.mw-form-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 25.6px;
    color: var(--mw-text);
    text-align: center;
    /* The original leads with an empty paragraph above the heading. */
    margin: 58px 0 8px;
}

/* The email alternative above the form. Centred under the heading, and
 * the addresses do not wrap mid-address on a narrow screen. */
.mw-form-email {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    text-align: center;
    margin: 0 0 28px;
}

.mw-form-email a {
    color: var(--mw-link);
    text-decoration: none;
    white-space: nowrap;
}

.mw-form-email a:hover,
.mw-form-email a:focus {
    text-decoration: underline;
}

.mw-form-hint {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    margin: 0 0 11px;
}

.mw-req {
    color: #c00;
}

.mw-field {
    margin-bottom: 24px;
    /* Fields are inset 5px, so the controls are 1070px not 1080px. */
    padding: 0 5px;
}

.mw-field label {
    display: block;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #444;
    margin-bottom: 13px;
}

.mw-field input,
.mw-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--mw-text);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 12px;
}

.mw-field textarea {
    height: 200px;
    resize: vertical;
}

.mw-field input:focus,
.mw-field textarea:focus {
    outline: 2px solid var(--mw-navy);
    outline-offset: -2px;
}

.mw-field input[aria-invalid],
.mw-field textarea[aria-invalid] {
    border-color: #c00;
}

.mw-field-error {
    display: block;
    font-size: 14px;
    color: #c00;
    margin-top: 4px;
}

.mw-submit {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    background: #333;
    border: 0;
    border-radius: 0;
    padding: 12px 20px;
    margin-top: 8px;
    cursor: pointer;
}

.mw-submit:hover {
    background: var(--mw-navy);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.mw-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mw-form-note {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.mw-form-note--ok {
    background: #eef7ee;
    border-color: #2e7d32;
    color: #1b4d20;
}

.mw-form-note--bad {
    background: #fdeeee;
    border-color: #c00;
    color: #8a0000;
}

.mw-form-foot {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    text-align: center;
    margin: 55px 0 0;
}

.mw-form-foot a {
    color: var(--mw-link);
    text-decoration: none;
}

.mw-form-foot a:hover {
    text-decoration: underline;
}

/* Purchase inquiry: intro copy and the stockist columns. */
.mw-intro p {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    text-align: center;
    margin-bottom: 16px;
}

.mw-intro a {
    color: var(--mw-link);
    text-decoration: none;
}

.mw-intro a:hover {
    text-decoration: underline;
}

.mw-salute {
    padding-bottom: 15px;
    margin-bottom: 0 !important;
}

.mw-stockists-title {
    font-family: Roboto, 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--mw-navy);
    margin: 8px 0 20px;
}

/* Four groups across, folding to two and then one. auto-fit rather than
 * a fixed count so a group is never left stranded on a row of its own. */
.mw-stockists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px 28px;
    margin-bottom: 40px;
}

.mw-stockist-group h3 {
    font-family: Roboto, 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--mw-navy);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 59, 92, .2);
}

.mw-stockist-group ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.mw-stockist-group li {
    font-size: 15px;
    line-height: 1.45;
    color: var(--mw-text);
    padding: 5px 0;
}

.mw-stockists p {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    margin-bottom: 16px;
}

.mw-stockists a {
    color: var(--mw-link);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mw-stockists a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Opening splash (/caramia/)
 * --------------------------------------------------------------- */

.mw-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-splash-art {
    width: 40vh;
    height: auto;
    max-width: 90vw;
    border: 15px solid #fff;
    border-radius: 35%;
    box-sizing: border-box;
    margin: 0;
}

/* Held at 0 until the splash hands over; the transition is what the
 * script fades up. */
.mw-splash-pending header,
.mw-splash-pending main,
.mw-splash-pending footer {
    opacity: 0;
}

header,
main,
footer {
    transition: opacity 1.2s ease;
}

/* ------------------------------------------------------------------
 * Long-form pages (previous wines, testimonials)
 * --------------------------------------------------------------- */

/* The original nests this page in a wrapper section, giving it 86px
 * above the first heading and 108px below the last block. */
.mw-longform--prev {
    padding-top: 86px;
    padding-bottom: 108px;
}

.mw-longform-close {
    padding: 75px 0;
}

.mw-longform h2 {
    font-family: 'Source Sans Pro', 'Open Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #111;
    text-align: center;
    margin: 0;
}

.mw-longform h3 {
    font-family: 'Source Sans Pro', 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28.8px;
    color: #111;
    text-align: center;
    margin: 0;
}

.mw-longform h3 img {
    display: block;
    margin: 0 auto;
}

.mw-longform h3 a {
    color: var(--mw-link);
}

.mw-longform p {
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
    margin: 16px 0;
}

/* ------------------------------------------------------------------
 * Testimonial wall
 * --------------------------------------------------------------- */

.mw-wall-title {
    font-family: Roboto, 'Open Sans', sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--mw-text);
    margin: 0 0 20px;
}

/* Two columns, as the original had. The page decides which item goes in
 * which — see the split in old-testimonial/index.php — because CSS
 * column-count balances by height, which moves the break when one item
 * is much taller than the rest. */
.mw-wall .mw-wall-col {
    padding: 22px 33px 22px 20px;
}

.mw-wall .mw-wall-col + .mw-wall-col {
    padding: 22px 20px 3px 22px;
}

.mw-wall-item {
    display: block;
    margin-bottom: 16px;
    text-decoration: none;
    position: relative;
}

.mw-wall img,
.mw-wall-video {
    display: block;
    width: 100%;
    height: auto;
}

/* The customer's own words, under the picture they came with. Sized as
 * the wall's paragraphs were, since that is what these used to be. */
.mw-wall-caption {
    display: block;
    padding-top: 12px;
}

.mw-wall-caption span {
    display: block;
    font-size: 16px;
    line-height: 25.6px;
    color: var(--mw-text);
}

.mw-wall-caption span + span {
    margin-top: 16px;
}



.mw-wall-close img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 22px;
}

/* ------------------------------------------------------------------
 * Photo gallery + lightbox
 *
 * Three 350px columns, as the original's masonry produced.
 * --------------------------------------------------------------- */

.mw-gallery {
    column-count: 3;
    column-gap: 15px;
}

/* .mw-gallery-item is the shared tile: it marks anything the lightbox
 * should open, on the photo wall and the video grid alike. Only what
 * both have in common belongs here. */
.mw-gallery-item {
    display: block;

    /* The whole tile is a link, so its caption would be underlined as
     * link text. It has to come off here: a decoration is painted by
     * the element that declares it and propagates to descendants, so
     * text-decoration:none on the caption itself does nothing. */
    text-decoration: none;
}

/* The masonry wall's own spacing, which the video grid must not inherit
 * — it does its own spacing with grid-gap. */
.mw-gallery .mw-gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    line-height: 0;
}

.mw-gallery-item img {
    width: 100%;
    height: auto;
    transition: opacity .15s ease;
}

/* Captions sit under the photograph they belong to, as on the original.
 * Only the tiles that have one get any — measured from the live site at
 * 14px in the body colour, centred, with the item's own 15px margin
 * carrying the gap to the tile below.
 *
 * line-height is restored here because .mw-gallery-item zeroes it to
 * kill the inline-block gap under the image. */
.mw-gallery-caption {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: var(--mw-text);
    text-align: center;
    padding: 8px 4px 0;
}

.mw-gallery-item:hover img {
    opacity: .85;
}

.mw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 64px;
}

.mw-lightbox[hidden] {
    display: none;
}

.mw-lightbox-img,
.mw-lightbox-video {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
}

/* A video needs a usable width even before its metadata loads, or the
 * element collapses to nothing and the controls are unreachable. */
.mw-lightbox-video {
    width: min(900px, 100%);
    background: #000;
}

.mw-lightbox-count {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    letter-spacing: .04em;
    margin: 8px 0 0;
    font-variant-numeric: tabular-nums;
}

.mw-lightbox-caption {
    color: #fff;
    font-size: 15px;
    text-align: center;
    margin: 14px 0 0;
    max-width: 60ch;
}

.mw-lightbox button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 12px;
}

.mw-lightbox-close {
    top: 10px;
    right: 16px;
    font-size: 40px;
}

.mw-lightbox-prev,
.mw-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
}

.mw-lightbox-prev { left: 8px; }
.mw-lightbox-next { right: 8px; }

.mw-lightbox button:hover {
    color: var(--mw-panel);
}

@media (max-width: 991.98px) {
    .mw-gallery { column-count: 2; }
}

@media (max-width: 575.98px) {
    .mw-gallery { column-count: 1; }
    .mw-lightbox { padding: 40px 12px; }
}

/* ------------------------------------------------------------------
 * Regent cruise banner
 * --------------------------------------------------------------- */

.mw-cruise {
    background-image: url('/img/regent-cruise-bg.jpg');
    background-size: cover;
    /* The original anchors the photo top-left, not centred. */
    background-position: 0 0;
    background-repeat: no-repeat;
}

.mw-cruise h1 {
    font-family: 'Source Sans Pro', 'Open Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 41.4px;
    color: #fff;
    text-align: center;
    margin: 0 0 50px;
}

.mw-cruise p {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}

.mw-cruise p:last-child {
    margin-bottom: 0;
}

.mw-cruise a {
    color: #fff;
    text-decoration: none;
}

.mw-cruise a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Three-image strip
 *
 * The originals are three different aspect ratios forced into one
 * 326x188 box, so they stretch. Reproduced here rather than corrected,
 * so the strip reads the same as the live site.
 * --------------------------------------------------------------- */

.mw-strip {
    padding-top: 11px;
    padding-bottom: 11px;
}

.mw-strip .container {
    padding-left: 11px;
    padding-right: 11px;
}

.mw-strip .col-lg-4 {
    padding: var(--mw-gutter);
}

.mw-strip img {
    width: 100%;
    aspect-ratio: 326 / 188;
    object-fit: fill;
}

/* ------------------------------------------------------------------
 * Wine lineup + video
 * --------------------------------------------------------------- */

.mw-video-col {
    padding: var(--mw-gutter);
}

.mw-video-frame {
    width: 375px;
    max-width: 100%;
    aspect-ratio: 375 / 667;
    border: 0;
}

/* ------------------------------------------------------------------
 * Bottle line-up
 * --------------------------------------------------------------- */

.mw-bottle {
    padding: var(--mw-gutter);
    text-align: center;
}

.mw-bottle-caption {
    font-size: 16px;
    line-height: 1.6;
    color: var(--mw-text);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

.mw-bottle-caption a {
    color: var(--mw-link);
    text-decoration: none;
}

.mw-bottle-caption a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------- */

.mw-footer {
    background-color: var(--mw-footer-bg);
}

.mw-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    padding-bottom: 20px;
    gap: 1rem;
}

.mw-footer-logo {
    width: 115px;
    height: 115px;
}

.mw-footer-contact a {
    color: #fff;
    text-decoration: underline;
}

.mw-footer-mark {
    width: 202px;
    height: auto;
}

/* ------------------------------------------------------------------
 * Responsive
 *
 * The live site collapses its columns below 992px; the fixed pixel
 * type is scaled back so the headings do not overrun on a phone.
 * --------------------------------------------------------------- */

@media (max-width: 991.98px) {
    :root {
        --mw-section-y: 45px;
    }

    .mw-panel-body h2 {
        font-size: 32px;
        line-height: 1.3;
        /* The desktop 86px inset is a large hole on a phone. */
        margin-top: 8px;
    }

    .mw-panel-body p {
        font-size: 17px;
        line-height: 34px;
    }

    /* 82px top and bottom is a lot of empty grey on a phone. */
    .mw-bottle-shot {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .mw-cruise h1 {
        font-size: 27px;
        line-height: 1.25;
    }

    .mw-nav .nav-link,
    .mw-nav .dropdown-toggle {
        padding: .5rem 0;
        letter-spacing: 2px;
    }

    .mw-nav .dropdown-menu {
        border: 0;
        padding-left: 1rem;
    }

    .mw-footer .container {
        flex-direction: column;
        text-align: center;
        padding-top: 24px;
    }
}
