/*
Theme Name: Authentic Elopement Co. Preview
Version: 1.0.18
*/
.moab-prototype{--ink:#251e19;--paper:#f8f3e9;--clay:#9c4229;--muted:#e9decb;--dark:#29211b;color:var(--ink);background:var(--paper);font:17px/1.62 system-ui,sans-serif;margin:0}
.moab-prototype *{box-sizing:border-box}
.moab-prototype p,.moab-prototype ul{margin:0 0 20px}
.moab-prototype h1,.moab-prototype h2,.moab-prototype h3{font-family:Georgia,serif;font-weight:400;line-height:1.02;letter-spacing:-.045em;margin:0 0 24px}
.moab-prototype h1{font-size:clamp(52px,8vw,127px);max-width:10ch}
.moab-prototype h2{font-size:clamp(36px,5.2vw,72px);max-width:17ch}
.moab-prototype h3{font-size:clamp(24px,3vw,36px);margin-bottom:12px}
.moab-prototype figure{margin:0;position:relative}
.moab-prototype img{display:block;width:100%;height:auto}
.moab-prototype .moab-wrap{width:min(100% - 8vw,1240px);margin:0 auto;padding:clamp(44px,8vw,115px) 0}
.moab-prototype .moab-kicker{font-size:.78em;font-weight:700;text-transform:uppercase;letter-spacing:.14em}
.moab-prototype .moab-small,.moab-prototype .moab-rating{font-size:.82em}
.moab-prototype .moab-rating{margin:13px 0 0}
.moab-prototype .wp-block-buttons{margin:30px 0 0}
.moab-prototype .wp-block-button__link,.moab-prototype .moab-demo-form button{display:inline-block;background:var(--clay);color:#fff7ed;padding:14px 23px;border:1px solid transparent;border-radius:3px;text-decoration:none;font:700 .9em/1.3 system-ui,sans-serif;cursor:pointer}
.moab-prototype :is(a,button,summary,input):focus-visible{outline:3px solid #bb603c;outline-offset:4px}
.moab-prototype .moab-hero{display:grid;align-items:end;color:#fff7ed;background:#30251e}
.moab-prototype .moab-hero-image,.moab-prototype .moab-hero-copy{grid-area:1/1}
.moab-prototype .moab-hero-image:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#1b130cce 0%,#1b130c55 48%,transparent 84%);pointer-events:none}
.moab-prototype .moab-hero-copy{z-index:1;padding:7vw 6vw;max-width:760px}
.moab-prototype .moab-split,.moab-prototype .moab-day,.moab-prototype .moab-pricing{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:clamp(20px,5vw,72px)}
.moab-prototype .moab-intro-photos,.moab-prototype .moab-keith-photos,.moab-prototype .moab-pair{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px}
.moab-prototype .moab-intro-photos figure:nth-child(2){margin-top:22%}
.moab-prototype .moab-story{border-top:1px solid #bdaf9c}
.moab-prototype .moab-story-intro,.moab-prototype .moab-gallery-copy{margin:42px 0;max-width:740px}
.moab-prototype .moab-day{padding:25px 0;border-top:1px solid #bdaf9c;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}
.moab-prototype .moab-day-reverse{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
.moab-prototype .moab-day-reverse .moab-day-copy{grid-column:2;grid-row:1}
.moab-prototype .moab-day-reverse .moab-pair{grid-column:1;grid-row:1}
.moab-prototype .moab-pricing{width:100%;padding:clamp(42px,7vw,105px) max(5vw,calc((100vw - 1240px)/2));background:var(--dark);color:#fff7ed;align-items:start}
.moab-prototype .moab-pricing blockquote{grid-column:1/-1;max-width:740px}
.moab-prototype .moab-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 48px;margin-top:36px}
.moab-prototype .moab-grid>.wp-block-group{border-top:1px solid #bdaf9c;padding-top:16px}
.moab-prototype .moab-keith{border-top:1px solid #bdaf9c}
.moab-prototype .moab-keith-photos{grid-template-columns:1fr;gap:16px}
.moab-prototype .moab-logos img{max-width:510px}
.moab-prototype .moab-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.moab-prototype .moab-gallery .moab-g1,.moab-prototype .moab-gallery .moab-g8{grid-column:span 2}
.moab-prototype .moab-reviews,.moab-prototype .moab-levi{margin-top:50px;padding-top:25px;border-top:1px solid #bdaf9c}
.moab-prototype blockquote{font:italic clamp(20px,2.6vw,34px)/1.2 Georgia,serif;border-left:2px solid #bc7153;margin:24px 0;padding:0 0 0 18px}
.moab-prototype blockquote p{margin-bottom:9px}
.moab-prototype cite{font:600 13px/1.4 system-ui,sans-serif}
.moab-prototype .moab-inquiry{background:var(--muted);padding-left:clamp(18px,6vw,86px);padding-right:clamp(18px,6vw,86px);scroll-margin:16px}
.moab-prototype .moab-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}
.moab-prototype .moab-fields label{display:grid;gap:5px;font-size:.9em}
.moab-prototype .moab-fields label span{display:inline}
.moab-prototype .moab-fields input{width:100%;padding:11px;border:1px solid #a18f7b;background:#fffaf0;color:var(--ink);font:inherit}
.moab-prototype .moab-demo-form .moab-small{margin-top:14px}
.moab-prototype .wp-block-details{border-top:1px solid #bdaf9c;padding:15px 0}
.moab-prototype .wp-block-details summary{cursor:pointer;font-weight:650}
.moab-prototype .wp-block-details p{margin-top:12px;max-width:65ch}
@media(max-width:700px){
.moab-prototype .moab-hero-image,.moab-prototype .moab-hero-copy{grid-area:auto}
.moab-prototype .moab-hero-image:after{background:none}
.moab-prototype .moab-hero-copy{padding:30px 6vw 42px}
.moab-prototype .moab-split,.moab-prototype .moab-day,.moab-prototype .moab-pricing,.moab-prototype .moab-fields{grid-template-columns:1fr}
.moab-prototype .moab-day-reverse .moab-day-copy,.moab-prototype .moab-day-reverse .moab-pair{grid-column:auto;grid-row:auto}
.moab-prototype .moab-pricing,.moab-prototype .moab-inquiry{width:100%}
.moab-prototype .moab-gallery{grid-template-columns:1fr 1fr}
.moab-prototype .moab-inquiry{padding-left:6vw;padding-right:6vw}
}

@media (max-width:700px){
.moab-prototype .moab-hero-copy{padding:26px 6vw 28px;max-width:100%;text-shadow:0 1px 12px rgba(24,16,11,.65)}
.moab-prototype .moab-hero-copy h1{font-size:clamp(36px,8.4vw,57px);max-width:16ch;margin-bottom:12px}
.moab-prototype .moab-hero-copy p{max-width:36ch;margin-bottom:12px}
.moab-prototype .moab-hero-copy .wp-block-buttons{margin-top:16px}
.moab-prototype .moab-hero-copy .moab-rating{margin:11px 0 0}
}

@media(max-width:900px){
.moab-prototype .moab-hero-image,.moab-prototype .moab-hero-copy{grid-area:auto}
.moab-prototype .moab-hero-image:after{background:none}
}


/* Keep image-led layouts compact while preserving photos with different proportions. */
.moab-prototype .moab-hero-image img{
  height:clamp(0px, 65vw, min(79svh, 920px));
  object-fit:cover;
  object-position:54% 45%;
}
.moab-prototype :is(.moab-intro-photos,.moab-pair,.moab-gallery) img{aspect-ratio:4/5;object-fit:cover;object-position:center 42%}
.moab-prototype .moab-keith-photos img{aspect-ratio:16/10;object-fit:cover}
@media(max-width:900px){
.moab-prototype .moab-hero-image img{height:auto;object-fit:contain}
}

:root{--aec-paper:#f8f3e9;--aec-ink:#251e19;--aec-clay:#9c4229;--aec-dark:#29211b}
body{margin:0;background:var(--aec-paper)}
.wp-site-blocks{padding:0}
.aec-header,.aec-footer{background:var(--aec-paper);color:var(--aec-ink);font:16px/1.45 system-ui,sans-serif}
.aec-header-inner,.aec-footer-inner{box-sizing:border-box;width:min(92%,1240px);margin:auto}
.aec-header-inner{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.aec-header{position:relative;z-index:3;border-bottom:1px solid #dacdbb}
.aec-wordmark{display:block;position:relative;width:176px;height:56px;flex:0 0 auto;overflow:hidden}
.aec-wordmark img{display:block;position:absolute;top:50%;left:50%;width:100%;height:auto;max-width:none;transform:translate(-50%,-50%)}
.aec-footer-brand .aec-wordmark{width:182px;height:62px;background:var(--aec-paper);border-radius:3px}
.aec-footer-brand .aec-wordmark img{width:calc(100% - 18px)}
.aec-nav-desktop,.aec-nav-mobile nav{display:flex;align-items:center;gap:22px}
.aec-nav-desktop a,.aec-nav-mobile a,.aec-footer-col a{color:inherit;text-decoration:none}
.aec-nav-desktop a:hover,.aec-nav-mobile a:hover,.aec-footer-col a:hover{text-decoration:underline;text-underline-offset:4px}
.aec-nav-cta{display:inline-block;background:var(--aec-clay);color:#fff7ed;text-decoration:none;border-radius:3px;padding:11px 15px;font-size:.88rem;font-weight:700}
.aec-header a:focus-visible,.aec-footer a:focus-visible,.aec-nav-mobile summary:focus-visible{outline:3px solid #b76142;outline-offset:4px}
.aec-nav-mobile{display:none}
.aec-footer{background:#29211b;color:#fbf3e5;padding:64px 0 55px}
.aec-footer-inner{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:32px}
.aec-footer-col{display:grid;align-content:start;gap:7px;font-size:.9rem}
.aec-footer-col h2{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;margin:0 0 7px}
.aec-footer-col ul{display:grid;gap:7px;list-style:none;margin:0;padding:0}
.aec-footer-brand p{color:#e2d2bc}
.aec-site-content{min-height:40vh}
.moab-prototype .aec-site-hero .moab-hero-copy{padding-top:45px;padding-bottom:65px}
.moab-prototype .aec-site-hero .moab-hero-copy h1{max-width:14ch;font-size:clamp(50px,7.4vw,110px)}
.moab-prototype .aec-site-hero .moab-hero-copy>.wp-block-buttons{display:inline-flex;margin:8px 10px 5px 0}
.moab-prototype .wp-block-button.is-style-outline .wp-block-button__link{color:currentColor;background:transparent;border:1px solid currentColor}
.moab-prototype .aec-site-hero .is-style-outline{color:#fff7ed}
.moab-prototype .aec-title h1{max-width:20ch;font-size:clamp(50px,8vw,104px)}
.moab-prototype .aec-title{border-bottom:1px solid #d0bfaa;padding-bottom:clamp(24px,5vw,65px)}
.moab-prototype .aec-copy-section{padding-top:clamp(29px,4.7vw,70px);padding-bottom:clamp(24px,4.8vw,72px)}
.moab-prototype .aec-copy-section p,.moab-prototype .aec-copy-section ul,.moab-prototype .aec-copy-section ol{max-width:74ch}
.moab-prototype .aec-copy-section+.aec-copy-section{border-top:1px solid #d0bfaa}
.moab-prototype .aec-split{padding-top:clamp(38px,6vw,90px);padding-bottom:clamp(38px,6vw,90px)}
.moab-prototype .aec-split-reverse .aec-pictures{grid-row:1;grid-column:1}
.moab-prototype .aec-split-reverse .aec-copy{grid-row:1;grid-column:2}
.moab-prototype .aec-pictures{display:grid;gap:12px}
.moab-prototype .aec-photo-section{padding-top:clamp(16px,4vw,58px);padding-bottom:clamp(16px,4vw,58px)}
.moab-prototype .aec-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.moab-prototype .aec-gallery .wp-block-image:nth-child(11n+1){grid-column:span 2}
.moab-prototype .aec-gallery-single{grid-template-columns:1fr}
.moab-prototype .aec-gallery-single .wp-block-image:first-child{grid-column:auto}
.moab-prototype .aec-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.moab-prototype .aec-card{display:flex;flex-direction:column;background:#ede3d3;overflow:hidden}
.moab-prototype .aec-card-copy{padding:23px;flex:1}
.moab-prototype .aec-card h3{font-size:clamp(25px,2.8vw,38px)}
.moab-prototype .aec-card h3 a{color:inherit;text-decoration-thickness:1px;text-underline-offset:4px}
.moab-prototype .aec-destinations{border-top:1px solid #d0bfaa}
.moab-prototype .aec-article{width:min(91%,760px);padding-top:25px}
.moab-prototype .aec-article-lead{padding:26px 0 0}
.moab-prototype .aec-article h2{font-size:clamp(29px,4vw,52px);margin-top:48px;max-width:24ch}
.moab-prototype .aec-article h3{margin-top:28px}
.moab-prototype .aec-article p{line-height:1.75}
.moab-prototype .aec-article .aec-article-photo{margin:28px 0}
.moab-prototype .aec-article-cta{border-top:1px solid #d0bfaa}
.moab-prototype .aec-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.moab-prototype .aec-package{background:#eee2cf;padding:22px 27px}
.moab-prototype .aec-package:nth-child(3){background:#35271f;color:#fff5e6}
.moab-prototype .aec-package .moab-wrap{width:100%;padding:10px 0 16px;border:0}
.moab-prototype .aec-package h2{font-size:clamp(29px,4vw,47px)}
.moab-prototype .wp-block-table{overflow-x:auto;margin-bottom:30px}
.moab-prototype .wp-block-table td,.moab-prototype .wp-block-table th{border:1px solid #cbb9a4;padding:11px;text-align:left}
.moab-prototype .wp-block-video video{display:block;width:100%;max-height:600px;aspect-ratio:16/9;background:#29211b}
.moab-prototype .moab-fields :is(textarea,select){width:100%;padding:11px;border:1px solid #a18f7b;background:#fffaf0;color:var(--aec-ink);font:inherit}
.moab-prototype :is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #bb603c;outline-offset:4px}
@media(max-width:880px){
  .aec-nav-desktop,.aec-header-cta{display:none}
  .aec-nav-mobile{display:block}
  .aec-nav-mobile summary{cursor:pointer;border:1px solid #c9b9a8;border-radius:3px;padding:8px 11px}
  .aec-nav-mobile nav{position:absolute;top:100%;right:0;left:0;background:var(--aec-paper);border-bottom:1px solid #c9b9a8;align-items:start;flex-direction:column;gap:14px;padding:20px 5vw}
  .aec-nav-mobile:not([open]) nav{display:none}
  .aec-nav-mobile .aec-nav-cta{color:#fff7ed}
  .aec-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}
  .moab-prototype .aec-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .aec-wordmark{width:142px;height:47px}
  .aec-header-inner{min-height:60px}
  .moab-prototype .aec-site-hero .moab-hero-copy{padding:24px 6vw 26px}
  .moab-prototype .aec-site-hero .moab-hero-copy h1{font-size:clamp(40px,9vw,63px);max-width:13ch}
  .moab-prototype .aec-split-reverse .aec-pictures,.moab-prototype .aec-split-reverse .aec-copy{grid-row:auto;grid-column:auto}
  .moab-prototype .aec-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .moab-prototype .aec-gallery-single{grid-template-columns:1fr}
  .moab-prototype .aec-package-grid{grid-template-columns:1fr}
}
@media(max-width:450px){
  .moab-prototype .aec-cards{grid-template-columns:1fr}
}

.aec-video-play{display:block;margin:12px auto 0;padding:10px 18px;cursor:pointer}

.aec-calendly{display:block;width:100%;min-height:720px;border:0;margin:16px auto}

.aec-cookie-settings{display:block;margin-top:14px;color:inherit;background:none;border:0;padding:4px;cursor:pointer;text-decoration:underline}
.aec-cookie-choices{position:fixed;inset:auto 12px 12px auto;z-index:1000;max-width:420px;padding:16px;background:var(--aec-paper);color:#251e19;border:1px solid #b1a08d;border-radius:4px;box-shadow:0 3px 16px #251e1940}
.aec-cookie-choices p{margin:0 0 10px}.aec-cookie-choices button{margin:4px;padding:7px 10px;cursor:pointer}

.aec-missing{min-height:40vh;padding:clamp(32px,8vw,100px) 24px;text-align:center}.aec-missing a{text-decoration:underline}

.moab-prototype :is(.aec-pictures,.aec-card) img{aspect-ratio:4/3;object-fit:cover;object-position:center 42%}
.moab-prototype .aec-gallery img{aspect-ratio:4/5;object-fit:cover;object-position:center 42%}
.moab-prototype .aec-gallery .wp-block-image:nth-child(11n+1) img{aspect-ratio:8/5}
.moab-prototype .aec-gallery-single .wp-block-image:first-child img{aspect-ratio:2/1}
.moab-prototype :is(.moab-intro-photos,.moab-pair,.moab-gallery,.moab-keith-photos,.aec-pictures,.aec-card,.aec-gallery,.aec-gallery-single) figure.wp-block-image.aec-keep-photo img,
.moab-prototype :is(.aec-gallery,.aec-gallery-single) .wp-block-image.aec-keep-photo:first-child img,
.moab-prototype .aec-gallery .wp-block-image.aec-keep-photo:nth-child(11n+1) img{aspect-ratio:auto;height:auto;object-fit:contain}
.moab-prototype :is(.moab-gallery,.aec-gallery,.aec-gallery-single,.moab-intro-photos,.moab-pair) .wp-block-image img.aec-photo-landscape{aspect-ratio:4/3}
.moab-prototype .aec-gallery .wp-block-image:nth-child(11n+1) img.aec-photo-landscape{aspect-ratio:8/5}
.moab-prototype :is(.aec-card,.aec-pictures,.moab-keith-photos,.moab-gallery,.aec-gallery,.aec-gallery-single) .wp-block-image img.aec-photo-portrait{aspect-ratio:4/5}
.moab-prototype :is(.aec-card,.aec-pictures,.moab-keith-photos,.moab-gallery,.aec-gallery,.aec-gallery-single,.moab-intro-photos,.moab-pair) .wp-block-image img.aec-photo-native-ratio{aspect-ratio:auto;object-fit:contain}
.aec-related-guides {
    width: min(100% - 8vw, 760px);
    margin: 0 auto;
    padding: 40px 0 54px;
}
.aec-related-guides a { text-underline-offset: 0.18em; }

/* Full-frame photos with layouts sized to the number of images in each group. */
.moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery, .moab-intro-photos, .moab-pair, .moab-keith-photos, .aec-pictures):has(> figure.wp-block-image:nth-of-type(2)) {
    --aec-photo-gap: 10px;
    display: block;
    column-count: 2;
    column-gap: var(--aec-photo-gap);
    column-fill: balance;
}
.moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery, .moab-intro-photos, .moab-pair, .moab-keith-photos, .aec-pictures):has(> figure.wp-block-image:nth-of-type(2)) > figure.wp-block-image {
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--aec-photo-gap);
    vertical-align: top;
    break-inside: avoid;
}
.moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery, .moab-intro-photos, .moab-pair, .moab-keith-photos, .aec-pictures):has(> figure.wp-block-image:nth-of-type(2)) > figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    contain-intrinsic-size: none;
    aspect-ratio: auto var(--aec-photo-ratio, 3 / 2);
    object-fit: contain;
}
.moab-prototype :is(.aec-gallery, .moab-gallery, .moab-intro-photos, .moab-pair, .moab-keith-photos, .aec-pictures) > figure:has(img.aec-photo-portrait) {
    --aec-photo-ratio: 2 / 3;
    --aec-photo-weight: 2;
}
.moab-prototype :is(.aec-gallery, .moab-gallery, .moab-intro-photos, .moab-pair, .moab-keith-photos, .aec-pictures) > figure:has(img.aec-photo-native-ratio) {
    --aec-photo-ratio: 1 / 1;
    --aec-photo-weight: 3;
}
@supports (aspect-ratio: auto attr(width type(<number>)) / attr(height type(<number>))) {
    .moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery, .moab-intro-photos, .moab-pair, .moab-keith-photos, .aec-pictures):has(> figure.wp-block-image:nth-of-type(2)) > figure.wp-block-image img[width][height] {
        aspect-ratio: auto attr(width type(<number>)) / attr(height type(<number>));
    }
}
.moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery, .moab-pair, .moab-keith-photos, .aec-pictures, .moab-intro-photos):has(> figure.wp-block-image:nth-of-type(2)):not(:has(> figure.wp-block-image:nth-of-type(3))) {
    display: flex;
    align-items: center;
    gap: var(--aec-photo-gap);
}
.moab-prototype :is(.aec-gallery, .moab-gallery, .moab-pair, .moab-keith-photos, .aec-pictures, .moab-intro-photos):has(> figure.wp-block-image:nth-of-type(2)):not(:has(> figure.wp-block-image:nth-of-type(3))) > figure.wp-block-image {
    flex: var(--aec-photo-weight, 4.5) 1 0;
    min-width: 0;
    margin: 0;
}
.moab-prototype .aec-pictures > figure.wp-block-image:only-child:has(img.aec-photo-portrait) {
    width: min(100%, 400px);
    margin-inline: auto;
}
.moab-prototype :is(.aec-pictures, .aec-article) figure.wp-block-image > img {
    contain-intrinsic-size: none;
}
.moab-prototype .aec-pictures > figure.wp-block-image:only-child img.aec-photo-portrait {
    height: auto;
    contain-intrinsic-size: none;
    aspect-ratio: auto 2 / 3;
    object-fit: contain;
}
@media (min-width: 701px) {
    .moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery, .moab-pair):has(> figure.wp-block-image:nth-of-type(5)) {
        column-count: 3;
    }
    .moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery):has(> figure.wp-block-image:nth-of-type(3)):not(:has(> figure.wp-block-image:nth-of-type(5))) {
        display: flex;
        align-items: center;
        gap: var(--aec-photo-gap);
    }
    .moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery):has(> figure.wp-block-image:nth-of-type(3)):not(:has(> figure.wp-block-image:nth-of-type(5))) > figure.wp-block-image {
        flex: var(--aec-photo-weight, 4.5) 1 0;
        min-width: 0;
        margin: 0;
    }
}
@media (min-width: 1001px) {
    .moab-prototype :is(.aec-gallery:not(.aec-gallery-single, .aec-portfolio-gallery), .moab-gallery):has(> figure.wp-block-image:nth-of-type(8)) {
        column-count: 4;
    }
}

/* Pair one portrait with stacks of landscape photos in the small mixed galleries. */
@media (max-width: 700px) {
    .moab-prototype .aec-gallery:not(.aec-portfolio-gallery):has(> figure:nth-of-type(3)):not(:has(> figure:nth-of-type(4))):is(:has(> figure:nth-of-type(1) > img.aec-photo-portrait):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-landscape), :has(> figure:nth-of-type(1) > img.aec-photo-landscape):has(> figure:nth-of-type(2) > img.aec-photo-portrait):has(> figure:nth-of-type(3) > img.aec-photo-landscape), :has(> figure:nth-of-type(1) > img.aec-photo-landscape):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-portrait)) {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
        align-items: start;
        gap: var(--aec-photo-gap);
    }
    .moab-prototype .aec-gallery:not(.aec-portfolio-gallery):has(> figure:nth-of-type(3)):not(:has(> figure:nth-of-type(4))):is(:has(> figure:nth-of-type(1) > img.aec-photo-portrait):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-landscape), :has(> figure:nth-of-type(1) > img.aec-photo-landscape):has(> figure:nth-of-type(2) > img.aec-photo-portrait):has(> figure:nth-of-type(3) > img.aec-photo-landscape), :has(> figure:nth-of-type(1) > img.aec-photo-landscape):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-portrait)) > figure.wp-block-image {
        grid-column: 2;
        margin: 0;
    }
    .moab-prototype .aec-gallery:not(.aec-portfolio-gallery):has(> figure:nth-of-type(3)):not(:has(> figure:nth-of-type(4))):is(:has(> figure:nth-of-type(1) > img.aec-photo-portrait):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-landscape), :has(> figure:nth-of-type(1) > img.aec-photo-landscape):has(> figure:nth-of-type(2) > img.aec-photo-portrait):has(> figure:nth-of-type(3) > img.aec-photo-landscape), :has(> figure:nth-of-type(1) > img.aec-photo-landscape):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-portrait)) > figure:has(> img.aec-photo-portrait) {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
}
@media (min-width: 701px) {
    .moab-prototype .aec-gallery:not(.aec-portfolio-gallery):has(> figure:nth-of-type(5)):not(:has(> figure:nth-of-type(6))):has(> figure:first-of-type > img.aec-photo-portrait):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-landscape):has(> figure:nth-of-type(4) > img.aec-photo-landscape):has(> figure:nth-of-type(5) > img.aec-photo-landscape) {
        display: grid;
        grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: var(--aec-photo-gap);
    }
    .moab-prototype .aec-gallery:not(.aec-portfolio-gallery):has(> figure:nth-of-type(5)):not(:has(> figure:nth-of-type(6))):has(> figure:first-of-type > img.aec-photo-portrait):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-landscape):has(> figure:nth-of-type(4) > img.aec-photo-landscape):has(> figure:nth-of-type(5) > img.aec-photo-landscape) > figure.wp-block-image {
        grid-column: auto;
        margin: 0;
    }
    .moab-prototype .aec-gallery:not(.aec-portfolio-gallery):has(> figure:nth-of-type(5)):not(:has(> figure:nth-of-type(6))):has(> figure:first-of-type > img.aec-photo-portrait):has(> figure:nth-of-type(2) > img.aec-photo-landscape):has(> figure:nth-of-type(3) > img.aec-photo-landscape):has(> figure:nth-of-type(4) > img.aec-photo-landscape):has(> figure:nth-of-type(5) > img.aec-photo-landscape) > figure:has(> img.aec-photo-portrait) {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
}
