/*287: Venue facts use the desktop width; mobile/tablet retain a single list. */
@media(min-width:960px){
 .detail-page:is(.restaurant-refresh,.event-refresh) .copertina .info_tags{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:8px;align-items:start;width:100%;}
 .detail-page:is(.restaurant-refresh,.event-refresh) .copertina .info_tags li{min-width:0;overflow-wrap:anywhere;}
}

/* Theatre identity: approved photo + live text; reuses native WordPress media. */
.cap-theatre-card .immaginehome>a{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:4/3;min-height:230px;background:#102c3c}
.cap-theatre-card .immaginehome>a::after,.cap-theatre-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,30,42,.06) 5%,rgba(16,44,60,.15) 30%,rgba(16,44,60,.88) 100%);pointer-events:none;z-index:1}
.cap-theatre-card .immaginehome>a img{object-fit:cover!important;object-position:center}
.cap-theatre-cover-label{position:absolute;left:24px;right:20px;bottom:26px;z-index:2;color:#fff;pointer-events:none;text-align:left;text-shadow:0 2px 7px rgba(0,0,0,.45)}
.cap-theatre-cover-label>span{display:block;color:#f4dfb0;font-size:10px;font-weight:700;letter-spacing:.18em;line-height:1.4}
.cap-theatre-cover-label>strong{display:block;color:#fff;font-size:clamp(22px,2.1vw,30px);font-weight:750;line-height:1.14;margin:8px 0 12px;overflow-wrap:break-word}
.cap-theatre-cover-label>i{display:block;width:42px;height:3px;background:#e6b665}
.cap-theatre-card .immaginehome .cap-programme-banner{top:12px;bottom:auto;left:14px;right:auto;width:auto;max-width:calc(100% - 28px);z-index:3;font-size:11px;padding:5px 9px;line-height:1.3}
.cap-theatre-cover{position:relative;isolation:isolate;overflow:hidden;border-radius:14px;background:#102c3c}
.theatre-refresh .cap-theatre-cover #carousel{margin:0}
.theatre-refresh .cap-theatre-cover .carousel{position:relative;aspect-ratio:3/1;height:auto!important;min-height:0!important;margin:0;background:#102c3c}
.theatre-refresh .cap-theatre-cover picture,.theatre-refresh .cap-theatre-cover .slick,.theatre-refresh .cap-theatre-cover .slick-list,.theatre-refresh .cap-theatre-cover .slick-track,.theatre-refresh .cap-theatre-cover .slick-slide,.theatre-refresh .cap-theatre-cover .slick-slide>div,.theatre-refresh .cap-theatre-cover .slick-slide>div>div{height:100%!important}
.theatre-refresh .cap-theatre-cover .slick-slide{position:relative}
.theatre-refresh .cap-theatre-cover img.carousel-img{width:100%;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto;object-fit:cover!important;object-position:center}
.theatre-refresh .cap-theatre-cover .slick-slide:not([data-slick-index="0"]) img.carousel-img{object-fit:contain!important;background:#102c3c}
.cap-theatre-cover>.cap-theatre-cover-label{left:32px;bottom:44px;right:80px}
.cap-theatre-cover>.cap-theatre-cover-label>strong{font-size:clamp(28px,3.4vw,44px);max-width:750px}
.cap-theatre-cover>.cap-theatre-cover-label>span{font-size:11px}
.cap-theatre-cover:has(.slick-current:not([data-slick-index="0"]))::after,.cap-theatre-cover:has(.slick-current:not([data-slick-index="0"]))>.cap-theatre-cover-label{display:none}
.cap-theatre-cover .cap-theatre-photo-credit{position:absolute;right:14px;bottom:8px;left:14px;z-index:4;margin:0;padding:4px 8px;width:fit-content;max-width:calc(100% - 28px);border-radius:4px;background:rgba(9,26,36,.88);color:#fff;font-size:10px;line-height:1.35;text-align:left}
.cap-theatre-cover .cap-theatre-photo-credit a{color:#fff;text-decoration:underline}
.cap-theatre-cover .slick-arrow,.cap-theatre-cover .detail-photo-controls,.cap-theatre-cover .detail-photo-counter{z-index:5}
@media(max-width:600px){.cap-theatre-card .immaginehome>a{min-height:230px}.cap-theatre-cover>.cap-theatre-cover-label{left:22px;right:45px;bottom:48px}.cap-theatre-cover>.cap-theatre-cover-label>strong{font-size:28px}.theatre-refresh .cap-theatre-cover .carousel{aspect-ratio:4/3}.cap-theatre-cover .cap-theatre-photo-credit{font-size:9px;max-width:calc(100% - 74px)}}

/* Give the slider a definite box so portrait images inherit its height. */
.theatre-refresh .cap-theatre-cover #carousel{position:relative;aspect-ratio:3/1;overflow:hidden}
.theatre-refresh .cap-theatre-cover #carousel>.carousel{position:absolute;inset:0;width:100%;height:100%!important;aspect-ratio:auto}
.theatre-refresh .cap-theatre-cover .slick{position:absolute;inset:0;width:100%;height:100%!important}
.theatre-refresh .cap-theatre-cover picture{display:block;width:100%;height:100%!important}
@media(max-width:600px){.theatre-refresh .cap-theatre-cover #carousel{aspect-ratio:4/3}}


/* Resolve gallery height from its actual container width, including portrait slides. */
.cap-theatre-cover{container-type:inline-size}
.theatre-refresh .cap-theatre-cover #carousel,.theatre-refresh .cap-theatre-cover #carousel>.carousel,.theatre-refresh .cap-theatre-cover .slick,.theatre-refresh .cap-theatre-cover .slick-list,.theatre-refresh .cap-theatre-cover .slick-track,.theatre-refresh .cap-theatre-cover .slick-slide,.theatre-refresh .cap-theatre-cover .slick-slide>div,.theatre-refresh .cap-theatre-cover .slick-slide>div>div,.theatre-refresh .cap-theatre-cover picture,.theatre-refresh .cap-theatre-cover img.carousel-img{height:calc(100cqw / 3)!important;min-height:0!important}
@media(max-width:600px){.theatre-refresh .cap-theatre-cover #carousel,.theatre-refresh .cap-theatre-cover #carousel>.carousel,.theatre-refresh .cap-theatre-cover .slick,.theatre-refresh .cap-theatre-cover .slick-list,.theatre-refresh .cap-theatre-cover .slick-track,.theatre-refresh .cap-theatre-cover .slick-slide,.theatre-refresh .cap-theatre-cover .slick-slide>div,.theatre-refresh .cap-theatre-cover .slick-slide>div>div,.theatre-refresh .cap-theatre-cover picture,.theatre-refresh .cap-theatre-cover img.carousel-img{height:75cqw!important}}


/* Approved soft fact cards: shared across restaurant, event, theatre and square details. */
.detail-page .info_tags.cap-soft-facts{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
 align-items:stretch!important;box-sizing:border-box;width:100%;margin:20px 0 24px;padding:0;
 list-style:none;clear:both;
}
.detail-page .copertina>.info_tags.cap-soft-facts{padding:0 16px}
.detail-page .info_tags.cap-soft-facts>.cap-soft-fact{
 display:flex!important;align-items:center!important;gap:12px!important;
 box-sizing:border-box;min-width:0;width:auto;max-width:none;float:none;margin:0!important;
 padding:14px!important;border:1px solid #dce5e9!important;border-radius:13px!important;
 background:#fff!important;color:#1c3342!important;font:inherit!important;
 text-align:left;box-shadow:0 2px 8px rgba(20,48,64,.025);overflow-wrap:anywhere;
}
.detail-page .cap-soft-fact>.cap-soft-fact-icon{
 display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;
 border-radius:12px;background:#eaf3f7;color:#08648d;
}
.detail-page .cap-soft-fact-icon svg{display:block;width:22px;height:22px;flex:none;margin:0}
.detail-page .cap-soft-fact-copy{display:block;min-width:0;flex:1;font-family:inherit;line-height:1.45}
.detail-page .cap-soft-fact-label{display:block;color:#526773;font-size:12px;font-weight:400;line-height:1.4;margin:0 0 3px}
.detail-page .cap-soft-fact-value{display:block;color:#1c3342;font-size:16px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.detail-page .cap-soft-fact-value p{margin:0;font:inherit;line-height:inherit}
.detail-page .cap-soft-fact-value a{color:#08648d;text-decoration:underline;text-underline-offset:3px}
@media(min-width:960px){
 .detail-page .copertina .info_tags.cap-soft-facts,
 .detail-page .info_tags.cap-soft-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:600px){
 .detail-page .info_tags.cap-soft-facts>.cap-soft-fact{padding:12px!important;gap:11px!important}
 .detail-page .cap-soft-fact-value{font-size:15px}
}
/* Compact contact layout shared by every theatre. */
.theatre-refresh #contatti-evento .civic-contact-details{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;column-gap:20px;row-gap:4px;padding-left:16px;font-size:14px;line-height:1.5;font-style:normal;min-width:0}
.theatre-refresh #contatti-evento .civic-contact-details>p{min-width:0;margin:0!important;padding:0!important;border:0!important}
.theatre-refresh #contatti-evento .civic-contact-details>p:not(:has(a)){flex-basis:100%}
.theatre-refresh #contatti-evento .civic-contact-details>p:has(a){flex:0 1 auto;display:flex;align-items:center;flex-wrap:wrap;gap:0 6px}
.theatre-refresh #contatti-evento .civic-contact-details>p:first-child strong{font-size:18px;line-height:1.4}
.theatre-refresh #contatti-evento .civic-contact-details a{display:inline-flex;align-items:center;min-width:0;max-width:100%;min-height:32px;margin:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
@media(max-width:759px){.theatre-refresh #contatti-evento .civic-contact-details{flex-direction:column;align-items:flex-start;gap:2px;padding-left:12px}.theatre-refresh #contatti-evento .civic-contact-details>p:not(:has(a)){flex-basis:auto}.theatre-refresh #contatti-evento .civic-contact-details a{min-height:44px}}
