/* VWW Frontend Shortcodes */

.vww-shortcode .vww-section-title {
    margin: 0 0 10px;
}

.vww-registry__item {
    margin: 12px 0;
}

.vww-registry__button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
}

.vww-registry__desc {
    margin-top: 6px;
    opacity: 0.8;
}
.vww-faq__title {
    margin: 0 0 12px;
}

.vww-faq__item {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
    background: #fff;
}

.vww-faq__q {
    font-weight: 700;
    cursor: pointer;
}

.vww-faq__a {
    margin-top: 10px;
    opacity: .95;
}

.vww-wedding-menu {
    margin: 0 0 24px;
}

.vww-wedding-menu__list {
    display: flex;
    gap: 50px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.vww-wedding-menu__list li {
    list-style: none;
}

.vww-wedding-menu__item a {
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    color: inherit;
}

.vww-wedding-menu__item.is-active a {
    border-bottom-color: currentColor;
}
.vww-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    align-items: start;
}

.vww-gallery-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.vww-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Collage pattern (adjust as you like) */
.vww-gallery-item:nth-child(1) { grid-column: span 7; }
.vww-gallery-item:nth-child(2) { grid-column: span 5; }
.vww-gallery-item:nth-child(3) { grid-column: span 5; }
.vww-gallery-item:nth-child(4) { grid-column: span 5; }
.vww-gallery-item:nth-child(5) { grid-column: span 7; }
.vww-gallery-item:nth-child(6) { grid-column: span 4; }
.vww-gallery-item:nth-child(7) { grid-column: span 4; }
.vww-gallery-item:nth-child(8) { grid-column: span 4; }

@media (max-width: 900px) {
    .vww-gallery-grid { grid-template-columns: repeat(6, 1fr); }
    .vww-gallery-item { grid-column: span 6; }
}
.vww-partner-names{
    text-align:center;
    line-height:1.1;
}
.vww-partner-names .vww-amp{
    display:inline-block;
    margin:10px 0;
}

.vww-wedding-date {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.12em;
    margin-top: 24px;
    margin-bottom: 6px;
}
/* Wedding Date */
.vww-wedding-date {
    text-align: center;
    font-family: inherit; /* inherit theme serif if used */
    font-size: 22px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 28px 0 8px;
}

/* Wedding Location */
.vww-location {
    text-align: center;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #444;
    margin-bottom: 28px;
}

.vww-shortcode--registry {
    text-align: center;
}

/* =========================================
   VWW Gallery – Uniform Image Size (300px)
   ========================================= */

/* Switch to a simple equal grid */
.vww-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

/* Remove collage spanning */
.vww-gallery-item {
    grid-column: auto !important;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

/* Force all images to fill the square */
.vww-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   VWW Gallery Marquee – Fixed 480px Height
   ========================================= */

.vww-marquee {
    --vww-marquee-speed: 45s;
    --vww-marquee-height: 480px;
    overflow: hidden;
}

.vww-marquee__viewport {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.vww-marquee__track {
    display: flex;
    gap: 22px;
    align-items: center;
    flex: 0 0 auto;
    animation: vww-marquee-scroll var(--vww-marquee-speed) linear infinite;
}

/* Pause on hover */
.vww-marquee:hover .vww-marquee__track {
    animation-play-state: paused;
}

/* Each image “frame” */
.vww-marquee__item {
    flex: 0 0 auto;
    height: var(--vww-marquee-height);
    width: calc(var(--vww-marquee-height) * 0.75); /* consistent portrait ratio */
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

/* Force images to crop correctly */
.vww-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 20px;
}

/* Animation */
@keyframes vww-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Mobile adjustment */
@media (max-width: 700px) {
    .vww-marquee {
        --vww-marquee-height: 300px;
    }

    .vww-marquee__track {
        gap: 14px;
    }
}

/* Registry page intro */
.vww-registry-heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.vww-registry-excerpt {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    opacity: 0.75;
    font-size: 15px;
}

/* Public QR page layout (matches portal vibe) */
.vww-shortcode--qr .vww-qr__wrap {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
}

.vww-shortcode--qr .vww-qr__img {
    width: 220px;
    height: 220px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.vww-shortcode--qr .vww-qr__img img {
    width: 200px;
    height: 200px;
    display: block;
}

.vww-shortcode--qr .vww-qr__label {
    font-weight: 600;
    margin-top: 4px;
}

.vww-shortcode--qr .vww-qr__url {
    margin-top: 6px;
    opacity: 0.8;
    word-break: break-word;
}

.vww-shortcode--qr .vww-qr__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Buttons */
.vww-shortcode--qr .vww-qr__btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    font: inherit;
}

/* Primary-ish print button */
.vww-shortcode--qr .vww-qr__btn--print {
    border-color: #111;
    background: #111;
    color: #fff;
}
/* Make email button match the portal primary button style */
.vww-shortcode--qr .vww-qr__btn--email {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* Public QR – copy URL button */
.vww-qr__url-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.vww-qr__url-text {
    opacity: 0.8;
    word-break: break-word;
}

.vww-qr__copy {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
    opacity: 0.7;
}

.vww-qr__copy:hover {
    opacity: 1;
}
/* Dress Code page intro */
.vww-dress-heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.vww-dress-excerpt {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    opacity: 0.75;
    font-size: 15px;
}

.vww-dress-body {
    max-width: 720px;
    margin: 0 auto;
}
/* =========================================
   VWW Schedule – Heading & Intro
   ========================================= */

.vww-schedule-heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
}

.vww-schedule-excerpt {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
    opacity: 0.75;
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================
   VWW Schedule – Clean Two-Column Layout
   ========================================= */

.vww-schedule {
    max-width: 900px;
    margin: 0 auto;
}

.vww-schedule__row {
    display: grid;
    grid-template-columns: 140px 1fr 260px;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
}

.vww-schedule__row:last-child {
    border-bottom: none;
}

/* Time column */
.vww-schedule__time {
    font-weight: 500;
    white-space: nowrap;
    padding-right: 18px;
    border-right: 1px solid #ddd;
    opacity: 0.9;
}

/* Main content */
.vww-schedule__content {
    padding-left: 18px;
}

.vww-schedule__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.vww-schedule__desc {
    opacity: 0.85;
    line-height: 1.5;
}

/* Right-side meta column */
.vww-schedule__meta {
    text-align: center;
}

.vww-schedule__venue {
    font-weight: 600;
    margin-bottom: 4px;
}

.vww-schedule__address {
    display: inline-block;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 12px;
    color: inherit;
}

/* Buttons */
.vww-schedule__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.vww-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    text-align: center;
    min-width: 160px;
}

.vww-btn--map {
    background: #111;
}

.vww-btn--calendar {
    background: #111;
}

/* =========================================
   Mobile Schedule Layout
   ========================================= */

@media (max-width: 768px) {
    .vww-schedule__row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vww-schedule__time {
        border-right: none;
        padding-right: 0;
        font-weight: 600;
    }

    .vww-schedule__content {
        padding-left: 0;
    }

    .vww-schedule__meta {
        text-align: left;
    }

    .vww-schedule__buttons {
        align-items: flex-start;
    }

    .vww-btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================
   VWW RSVP
   ========================================= */

.vww-shortcode--rsvp .vww-rsvp {
    max-width: 720px;
    margin: 0 auto;
}

.vww-shortcode--rsvp .vww-rsvp__card {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.vww-shortcode--rsvp .vww-rsvp__label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
}

.vww-shortcode--rsvp .vww-rsvp__input,
.vww-shortcode--rsvp .vww-rsvp__count {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.vww-shortcode--rsvp .vww-rsvp__actions {
    margin-top: 14px;
}

.vww-shortcode--rsvp .vww-rsvp__btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.vww-shortcode--rsvp .vww-rsvp__msg {
    margin-top: 10px;
    font-size: 13px;
    opacity: .85;
}

.vww-shortcode--rsvp .vww-rsvp__success {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-weight: 600;
}

.vww-shortcode--rsvp .vww-rsvp__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.vww-rsvp-button-wrap {
    margin-top: 20px;
    text-align: center;
}

.vww-rsvp-button {
    display: inline-block;
    padding: 14px 34px;
    background: #000;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
}

.vww-rsvp-button:hover {
    background: #222;
}
.vww-message-block {
    margin-top: 60px;          /* spacing above */
    text-align: center;
    max-width: 1024px;          /* keeps long text readable */
    margin-left: auto;
    margin-right: auto;
}

.vww-message-heading {
    margin-bottom: 20px;
}

.vww-message-text p {
    margin-bottom: 16px;
}

/* =========================================
   VWW Registry – Responsive Grid
   ========================================= */

.vww-registry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Each registry item */
.vww-registry__item {
    width: 100%;
    max-width: 260px;
    text-align: center;
}
/* Make heading & description span full width */
.vww-registry-heading,
.vww-registry-excerpt {
    grid-column: 1 / -1;
}

/* =========================================
   VWW Wedding Party – Public Page
   ========================================= */

/* Heading + intro */
.vww-party-heading {
    text-align: center;
    font-size: 32px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.vww-party-excerpt {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: 0.75;
    font-size: 15px;
    line-height: 1.6;
}

/* Two-column grid */
.vww-party-grid {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Center vertical divider */
.vww-party-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(0,0,0,0.25);
    transform: translateX(-0.5px);
}

/* Individual card */
.vww-party-card {
    padding: 48px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* Remove bottom border on last row */
.vww-party-card:nth-last-child(-n + 2) {
    border-bottom: none;
}

/* Optional circular photo */
.vww-party-photo-wrap {
    width: 170px;
    height: 170px;
    margin: 0 auto 18px;
    border-radius: 999px;
    overflow: hidden;
}

.vww-party-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Typography */
.vww-party-name {
    font-size: 30px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vww-party-role {
    font-weight: 600;
    margin-bottom: 8px;
}

.vww-party-relation {
    opacity: 0.85;
    font-size: 14px;
}

/* =========================================
   Mobile Layout
   ========================================= */

@media (max-width: 900px) {

    .vww-party-grid {
        grid-template-columns: 1fr;
    }

    .vww-party-grid::before {
        display: none;
    }

    .vww-party-card {
        padding: 32px 18px;
        border-bottom: 1px solid rgba(0,0,0,0.2);
    }

    .vww-party-card:last-child {
        border-bottom: none;
    }
}
/* Mobile-friendly wedding menu */
.vww-wedding-menu__list {
    flex-wrap: wrap;
    justify-content: center;
}

/* Smaller screens: reduce spacing and allow multi-line */
@media (max-width: 768px) {
    .vww-wedding-menu__list {
        gap: 18px;
    }

    .vww-wedding-menu__item a {
        padding: 6px 0;
        display: inline-block;
    }
}

/* Very small screens: tighten a bit more */
@media (max-width: 420px) {
    .vww-wedding-menu__list {
        gap: 12px;
    }
}


/* Tighten mobile wedding menu spacing */
@media (max-width: 768px) {
    .vww-wedding-menu__list {
        gap: 12px 18px;   /* row-gap | column-gap */
        margin-bottom: 12px;
    }

    .vww-wedding-menu__item a {
        padding: 2px 0;   /* reduce vertical padding */
        line-height: 1.2; /* tighter text box */
    }
}
/* =========================================
   VWW Marquee – Center when not overflowing
   ========================================= */

/* Allow centering when content is smaller than viewport */
.vww-marquee__viewport {
    justify-content: center;
}

/*
 If the marquee track overflows, the animation still works.
 If it does NOT overflow, the track will naturally sit centered.
*/

/* Prevent awkward left-anchoring */
.vww-marquee__track {
    margin: 0 auto;
}
/* =========================================
   VWW Gallery – Show Full Image (No Clipping)
   ========================================= */

/* The anchor is currently acting like a 300px "frame" and clipping the image.
   Override that for the gallery shortcode specifically. */
.vww-shortcode--gallery .vww-gallery-item {
    height: auto !important;
    overflow: visible !important;
}

/* Ensure the image is not cropped by any theme rules */
.vww-shortcode--gallery .vww-gallery-item img {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}
