/* Shared home cards and photos. Used by generated pages and the React library. */
.place-top-card{--card-py:24px;--card-px:0px;--card-radius:0px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:26px;align-items:stretch;background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:24px 0;margin:0;scroll-margin-top:95px}
.place-top-card.place-map-active{background:#F0E7D5;box-shadow:10px 0 #F0E7D5,-10px 0 #F0E7D5}
.place-top-card header{display:flex;align-items:baseline;gap:12px;margin:0 0 12px}
.place-top-card h3{font-size:1.5rem;line-height:1.3;margin:0;min-width:0}
.place-top-card h3 a{text-decoration:none;color:var(--plum)}
.place-top-card h3 a:hover{text-decoration:underline}
.place-top-card h3 span{font:1.2rem 'DM Sans',sans-serif;margin-left:6px;color:var(--grape)}
.place-rank{flex-shrink:0;min-width:24px;color:var(--grape);font-weight:700;font-size:1rem;font-variant-numeric:tabular-nums}
.place-rank:after{content:'.'}
.place-rank-podium{display:inline-grid;place-items:center;align-self:center;width:36px;min-width:36px;height:36px;margin-left:-6px;margin-right:-6px;border:1px solid var(--rank-edge);border-radius:50%;background:var(--rank-bg);color:var(--rank-ink);box-shadow:inset 0 0 0 3px var(--cream);font:700 1.2rem/1 'Fraunces',Georgia,serif;font-variant-numeric:lining-nums tabular-nums;text-align:center;letter-spacing:0}
.place-rank-podium:after{content:none}
.place-rank-podium[data-rank="1"]{--rank-bg:#f1dfb4;--rank-edge:#ac8745;--rank-ink:#654419}
.place-rank-podium[data-rank="2"]{--rank-bg:#e2e1e6;--rank-edge:#aaa5b2;--rank-ink:#4c4458}
.place-rank-podium[data-rank="3"]{--rank-bg:#ead8ca;--rank-edge:#b68c6c;--rank-ink:#745139}
.place-card-copy{min-width:0}
.place-card-description{font-size:1.05rem;line-height:1.6;color:var(--ink);margin:0 0 0 36px}
/* The photo fills the card's left side edge to edge; its credit rides the photo's foot. */
.place-top-card>.home-photo{position:relative;align-self:stretch;margin:calc(-1*var(--card-py)) 0 calc(-1*var(--card-py)) calc(-1*var(--card-px))}
.place-top-card>.home-photo .home-photo-link{height:100%;border-radius:var(--card-radius) 0 0 var(--card-radius)}
.place-top-card>.home-photo img{height:100%;aspect-ratio:auto;object-fit:cover}
.place-top-card>.home-photo figcaption{position:absolute;z-index:3;left:0;right:0;bottom:0;margin:0;padding:34px 14px 11px;font-size:.7rem;line-height:1.4;color:#fff;background:linear-gradient(to top,#28151fc4,#28151f00);border-radius:0 0 0 var(--card-radius);pointer-events:none}
.place-top-card>.home-photo figcaption a{pointer-events:auto;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.place-top-card>.home-photo figcaption a:hover,.place-top-card>.home-photo figcaption a:focus-visible{white-space:normal}
.place-card-scores{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:20px;align-items:center;margin:16px 0 0 36px}
.place-card-scores .place-input-ratings{margin:0}
.place-rating-summary{text-align:center;border-left:1px solid var(--line);padding-left:20px}
.place-rating-label{display:inline-block;font-size:.75rem;font-weight:700;color:var(--grape);white-space:nowrap}
.place-rating-value{line-height:1.2;margin-top:5px;color:var(--plum);white-space:nowrap}
.place-rating-value b{font-family:'Fraunces',Georgia,serif;font-size:2rem}
.place-rating-value span{font-size:.9rem;color:var(--ink-soft)}
.place-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:0 0 0 36px}
.place-card-details dt{font-size:.85rem;color:var(--ink-soft)}
.place-card-details dd{font-size:1rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.place-input-ratings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;margin:16px 0 0 36px}
.place-input-ratings>div{position:relative;display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-width:0;padding:0 0 11px}
.place-input-rated:before,.place-input-rated:after{content:'';position:absolute;left:0;bottom:0;height:5px;border-radius:999px}
.place-input-rated:before{width:100%;background:var(--cream-2)}
.place-input-rated:after{width:var(--rating-fill);background:var(--grape)}
.place-extra-card .place-input-rated:after{background:#969097}
.place-input-ratings dt{font-size:.78rem;line-height:1.4;color:var(--ink-soft)}
.place-input-ratings dd{flex-shrink:0;margin:0;font-size:.85rem;line-height:1.4;color:var(--plum);white-space:nowrap}
.place-input-ratings dd span{font-size:.72rem;color:var(--ink-soft)}
.place-input-ratings dd .place-input-missing{font-size:.7rem}
.place-extra-card .place-input-ratings,.place-extra-card .place-card-scores{margin-left:0}
.place-extra-card .place-input-ratings dd{color:#57545b}
/* The card answers to its list's width, not the viewport's: the list beside the map narrows to ~515px on 1024px screens. */
.place-top-homes,#place-home-cards{container-type:inline-size}
@container (max-width:760px){
 .place-top-card{grid-template-columns:160px minmax(0,1fr);gap:20px}
 .place-card-scores{grid-template-columns:minmax(0,1fr);gap:14px}
 .place-rating-summary{display:flex;align-items:baseline;justify-content:space-between;gap:16px;text-align:left;border-left:0;border-top:1px solid var(--line);padding:12px 0 0}
 .place-rating-value{margin-top:0}
}
@container (max-width:600px){
 .place-top-card{grid-template-columns:minmax(0,1fr);gap:18px}
 .place-top-card>.home-photo{margin:calc(-1*var(--card-py)) calc(-1*var(--card-px)) 0}
 .place-top-card>.home-photo .home-photo-link{height:auto;border-radius:var(--card-radius) var(--card-radius) 0 0}
 .place-top-card>.home-photo img{height:210px}
 .place-top-card>.home-photo figcaption{border-radius:0;padding:26px 14px 0}
 .place-top-card>.home-photo figcaption a{padding:12px 0}
 .place-card-scores,.place-card-description,.place-card-details{margin-left:0}
 .place-card-scores .place-input-ratings>div{flex-wrap:wrap;gap:3px 8px}
}
@media(max-width:640px){.place-top-card h3{font-size:1.4rem}}
@media(max-width:640px){.place-card-description,.place-card-details{margin-left:0;font-size:1rem}}
@media(max-width:640px){.place-input-ratings{margin-left:0;gap:12px 16px}}
@media(max-width:640px){.place-input-ratings>div{flex-wrap:wrap;gap:3px 8px}}
@media(max-width:640px){.place-rating-value b{font-size:1.8rem}}
@media(max-width:640px){.place-rating-label{font-size:.8rem}}
.place-extra-card h3 a,.place-extra-card .place-rating-value{color:#57545b}
.place-extra-card .place-card-description,.place-extra-card .place-rating-label{color:#66616b}
.place-extra-card .place-card-description,.place-extra-card .place-card-details{margin-left:0}
.place-extra-card h3 span{color:inherit}
.place-rating-value .place-unrated{display:block;font:600 1rem 'DM Sans',sans-serif;margin-top:8px}
.home-related-card{display:flex;flex-direction:column;flex:1;min-width:0;max-width:420px;padding:8px 28px;border-left:1px solid var(--line)}
.home-related-card:first-child{border-left:0}
.home-related-card h3{font-size:1.35rem;line-height:1.3;margin:0 0 12px;color:var(--plum)}
.home-related-card h3 a{color:inherit;text-decoration:none}
.home-related-card h3 a:hover{text-decoration:underline}
.home-related-address{color:var(--ink-soft);font-size:.95rem;line-height:1.5;margin:0 0 20px}
.home-related-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:auto 0 22px}
.home-related-card dt{font-size:.75rem;color:var(--ink-soft);margin:0 0 6px}
.home-related-card dd{margin:0;font-size:1.1rem;font-weight:600;color:var(--plum)}
.home-related-card dd span{font-size:.85rem;font-weight:400;color:var(--ink-soft)}
.home-related-card>.btn{align-self:center;font-size:.9rem;padding:10px 20px}
@media(max-width:700px){.home-related-card{width:100%;padding:24px 0;border-left:0;border-bottom:1px solid var(--line)}}
@media(max-width:700px){.home-related-card:last-child{border-bottom:0}}
@media(max-width:700px){.home-related-card dl{width:100%;margin:0 0 20px}}

.place-top-card[hidden]{display:none}
.home-related-card .btn{box-shadow:none;color:var(--grape);border-color:var(--line)}
.home-related-card .btn:hover{color:var(--plum);background:var(--cream-2)}
.home-photo{min-width:0;margin:0;text-align:left}
.home-photo-link{display:block;overflow:hidden;border-radius:12px;background:var(--cream-2)}
.home-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.home-photo figcaption{font-size:.7rem;line-height:1.4;margin-top:7px;overflow-wrap:anywhere;color:var(--ink-soft)}
.home-photo figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.home-photo a:focus-visible,.place-top-card a:focus-visible,.home-related-card a:focus-visible{outline:2px solid var(--grape);outline-offset:4px}
.home-related-card>.home-photo{margin:0 0 18px}
.home-related-card:not(:has(.home-photo)){justify-content:center}
.home-photo-gallery{scroll-margin-top:95px;padding:30px 0}
.home-photo-gallery h2{font-size:1.75rem;color:var(--plum);margin:0 0 20px}
.home-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.home-photo-grid>.home-photo:only-child{width:100%;max-width:900px;grid-column:1/-1}
.home-photo-grid .home-photo img{max-height:380px}
.home-photo-gallery-header{padding:0;margin:0}
.home-photo-gallery-header .home-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-photo-gallery-header .home-photo:first-child{grid-column:1/-1;max-width:none}
.home-photo-gallery-header .home-photo:first-child img{aspect-ratio:16/9;max-height:none}
.home-photo-gallery-header .home-photo:not(:first-child) img{aspect-ratio:4/3;max-height:none}
.home-photo-gallery-header .home-photo-nav[hidden]{display:none}
/* The header shows four photos; the fourth carries a "+n" link sized to its 4:3 photo, leaving
   the credit visible. Without eb.js that link reveals the rest here; with it, it opens the viewer. */
.home-photo[hidden]{display:none}
.home-photo-more-tile{position:relative}
#home-photos-all{scroll-margin-top:95px}
.home-photo-gallery:not(.is-enhanced) #home-photos-all:target .home-photo[hidden]{display:block}
.home-photo-gallery:not(.is-enhanced) #home-photos-all:target .home-photo-more{display:none}
.home-photo-more{position:absolute;top:0;left:0;right:0;aspect-ratio:4/3;display:grid;place-items:center;border-radius:12px;background:#28151f99;color:#fff;text-decoration:none;font-size:1.5rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.01em;transition:background .15s ease}
.home-photo-more:hover{background:#28151fb8}
.home-photo-more:focus-visible{outline:2px solid var(--grape);outline-offset:2px}
/* Enhanced by eb.js: one photo on the stage, the first four photos as thumbnails. */
.home-photo-stage{position:relative;margin:0;border-radius:12px;overflow:hidden;background:var(--cream-2)}
.home-photo-stage-link{display:block;cursor:zoom-in}
.home-photo-stage img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:opacity .25s ease}
.home-photo-stage.is-switching img{opacity:0}
.home-photo-stage figcaption{position:absolute;left:0;right:0;bottom:0;padding:34px 14px 12px;font-size:.72rem;line-height:1.4;color:#fff;background:linear-gradient(to top,#28151fb8,#28151f00)}
.home-photo-stage figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.home-photo-gallery.is-enhanced .home-photo-nav{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:6px}
.home-photo-nav button,.home-photo-viewer button{appearance:none;border:0;font:inherit;cursor:pointer}
.home-photo-nav button{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--cream);color:var(--plum);box-shadow:0 4px 14px #28151f3d;transition:background .15s ease,transform .15s ease}
.home-photo-nav button:hover{background:#fff;transform:translateY(-1px)}
.home-photo-nav button:active{transform:translateY(0)}
.home-photo-count{padding:0 12px;height:40px;display:inline-flex;align-items:center;border-radius:20px;font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--plum);background:var(--cream);box-shadow:0 4px 14px #28151f3d}
.home-photo-gallery.is-enhanced .home-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}
.home-photo-gallery.is-enhanced .home-photo{grid-column:auto}
.home-photo-gallery.is-enhanced .home-photo img{aspect-ratio:4/3;max-height:none}
.home-photo-gallery.is-enhanced .home-photo figcaption{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.home-photo-gallery.is-enhanced .home-photo-link{border-radius:8px;opacity:.72;transition:opacity .15s ease,outline-color .15s ease;outline:2px solid transparent;outline-offset:2px}
.home-photo-gallery.is-enhanced .home-photo-link:hover{opacity:1}
.home-photo-gallery.is-enhanced .home-photo.is-current .home-photo-link{opacity:1;outline-color:var(--grape)}
.home-photo-gallery.is-enhanced .home-photo-link:focus-visible{outline-color:var(--grape);opacity:1}
.home-photo-gallery.is-enhanced .home-photo-more-tile .home-photo-link{opacity:1}
.home-photo-gallery.is-enhanced .home-photo-more{font-size:1.2rem;border-radius:8px}
.home-photo-nav button:focus-visible,.home-photo-viewer button:focus-visible{outline:2px solid var(--cream);outline-offset:3px}
/* Viewer */
.home-photo-viewer{border:0;padding:0;margin:auto;background:transparent;color:var(--cream);width:min(1280px,100vw - 32px);max-width:none;max-height:none;height:calc(100dvh - 32px);display:none;flex-direction:column;gap:10px;overflow:visible}
.home-photo-viewer[open]{display:flex}
.home-photo-viewer::backdrop{background:#28151ff0}
.home-photo-viewer-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 4px;flex:none}
.home-photo-viewer-count{font-size:.9rem;font-weight:600;font-variant-numeric:tabular-nums}
.home-photo-viewer-close{padding:8px 16px;border-radius:20px;background:#ffffff1f;color:var(--cream);font-size:.9rem;font-weight:600}
.home-photo-viewer-close:hover{background:#ffffff33}
.home-photo-viewer-figure{margin:0;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:10px}
.home-photo-viewer-figure img{flex:1;min-height:0;max-width:100%;width:auto;height:auto;object-fit:contain}
.home-photo-viewer-figure figcaption{flex:none;font-size:.8rem;color:#f8f3e9cc;text-align:center;max-width:70ch}
.home-photo-viewer-figure figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.home-photo-viewer-prev,.home-photo-viewer-next{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--cream);color:var(--plum);box-shadow:0 6px 20px #00000059}
.home-photo-viewer-prev{left:-8px}.home-photo-viewer-next{right:-8px}
.home-photo-viewer-prev:hover,.home-photo-viewer-next:hover{background:#fff}
@media(max-width:1000px){.home-photo-gallery-header{margin-top:8px}}
@media(max-width:640px){
 .home-photo-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .home-photo-grid .home-photo img{max-height:none}
 .home-photo-gallery h2{font-size:1.5rem}
 .home-photo-gallery.is-enhanced .home-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .home-photo-nav button{width:36px;height:36px}
 .home-photo-count{height:36px;font-size:.75rem;padding:0 10px}
 .home-photo-stage figcaption{font-size:.68rem;padding:28px 10px 10px}
 .home-photo-viewer{width:100vw;height:100dvh;gap:8px}
 .home-photo-viewer-bar{padding:12px 16px 0}
 .home-photo-viewer-figure{padding:0 12px 76px}
 .home-photo-viewer-prev,.home-photo-viewer-next{top:auto;bottom:16px;transform:none;width:44px;height:44px}
 .home-photo-viewer-prev{left:16px}.home-photo-viewer-next{right:16px}
}
