/* EVENTS 4U – gallery (inside the bottle), history, production */

/* ---------- gallery: inside the bottle ---------- */
.page-template-template-gallery { overflow: hidden; }
.page-template-template-gallery .site-footer { display: none; }
.bottle-page {
	position: relative; block-size: 100svh; overflow: hidden;
	background: radial-gradient(ellipse 45% 70% at 50% 60%, #FFF3D6 0%, rgba(255, 243, 214, 0) 70%), radial-gradient(ellipse 80% 60% at 75% 10%, var(--blush), rgba(243, 221, 230, 0) 60%), linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, #EBD7B8 100%);
}
.bottle-page__canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 1; touch-action: none; }
.bottle-page__tip { position: absolute; z-index: 15; pointer-events: none; padding: .5rem .875rem; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -12px rgba(43, 33, 64, .5); font-size: .875rem; white-space: nowrap; transform: translate(-50%, -140%); opacity: 0; transition: opacity .25s; }
.bottle-page__info, .bottle-page__filters { position: absolute; z-index: 20; }
.bottle-page__info { inset-block-start: calc(var(--header-h) - .5rem); inset-inline-end: var(--gutter); inline-size: min(280px, 44vw); }
.bottle-page__info .mono { color: var(--gold-ink); }
.bottle-page__info h1 { margin-block-start: .5rem; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: .95; }
.bottle-page__lead { margin-block-start: 1rem; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.bottle-page__count { margin-block-start: 1rem; }
.bottle-page__list { list-style: none; margin-block-start: 1.5rem; display: grid; gap: .125rem; font-size: .9375rem; }
.bottle-page__list a { display: inline-block; padding-block: .25rem; text-decoration: none; }
.bottle-page__list span { color: var(--gold-ink); font-size: .8125rem; }
.bottle-page__list li.is-out { opacity: .35; }
.bottle-page__filters { inset-block-start: calc(var(--header-h) + 1rem); inset-inline-start: var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; }
.bottle-page__filters .mono { color: var(--gold-ink); }
.bottle-page__nav { display: flex; flex-direction: column; gap: .5rem; margin-block-start: 2.5rem; font-size: .9375rem; }
.bottle-page__nav a { text-decoration: none; }
@media (max-width: 899px) {
	.bottle-page__info { inset-block-start: auto; inset-block-end: 0; inset-inline: 0; inline-size: auto; padding: 1rem var(--gutter) 1.25rem; background: linear-gradient(0deg, rgba(246, 237, 228, .96), rgba(246, 237, 228, .7)); }
	.bottle-page__info h1 { font-size: 2.25rem; }
	.bottle-page__lead, .bottle-page__list, .bottle-page__nav { display: none; }
	.bottle-page__filters { inset-block-start: var(--header-h); inset-inline: 0; flex-direction: row; overflow-x: auto; padding-inline: var(--gutter); padding-block-end: .5rem; }
	.bottle-page__filters .mono { display: none; }
	.bottle-page__filters .chip { flex: 0 0 auto; }
}

/* the project room: opens like a bubble */
.room { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: 45vh 1fr; background: linear-gradient(160deg, var(--cream), #F1DCAA); overflow: auto; }
.room[hidden] { display: none; }
.room.is-open { animation: e4u-iris .9s var(--ease) both; }
.room__media { position: relative; background: var(--ink); }
.room__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.room__nav { position: absolute; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; display: flex; gap: .625rem; }
.room__arrow { inline-size: 52px; padding: 0; font-size: 1.5rem; }
.room__pos { position: absolute; inset-block-end: 1.75rem; inset-inline-end: 1.5rem; color: #FFF8EC; }
.room__body { position: relative; display: flex; flex-direction: column; padding: 2rem var(--gutter) 2rem; }
.room__close { align-self: flex-end; min-block-size: 44px; }
.room__meta { color: var(--gold-ink); margin-block-start: .5rem; }
.room__title { margin-block-start: .75rem; font-size: clamp(2.75rem, 1.8rem + 3vw, 4.5rem); line-height: .95; }
.room__text { margin-block-start: 1.25rem; font-size: 1.125rem; line-height: 1.75; }
.room__thumbs { display: flex; flex-wrap: wrap; gap: .625rem; margin-block-start: 1.5rem; }
.room__thumbs button { inline-size: 64px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.room__thumbs button[aria-current="true"] { border-color: var(--ink); }
.room__thumbs img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.room__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 2rem; }
@media (min-width: 900px) {
	.room { grid-template-rows: none; grid-template-columns: 60% 1fr; }
	.room__media { block-size: 100vh; }
	.room__body { padding: 6.5rem 3.5rem 2.5rem; }
	.room__close { position: absolute; inset-block-start: 1.5rem; inset-inline-end: 1.75rem; }
	.room__actions { margin-block-start: auto; }
}
.room-burst { position: fixed; inset: 0; z-index: 96; pointer-events: none; }
.room-burst span { position: absolute; inline-size: 10px; block-size: 16px; border-radius: 2px; animation: e4u-burst 1.1s cubic-bezier(.16, 1, .3, 1) both; }

/* ---------- history ---------- */
.history { position: relative; max-inline-size: 1280px; margin-inline: auto; padding: calc(var(--header-h) + 2rem) var(--gutter) 0; }
.post-type-archive-e4u_production, .tax-e4u_kind { background: radial-gradient(ellipse 70% 40% at 80% 0%, var(--blush), rgba(243, 221, 230, 0) 70%), linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 100%) fixed; }
.history__hero { padding-block: 3rem 3.5rem; }
.history__hero h1 { margin-block-start: 1.25rem; font-size: var(--fs-h1); line-height: .95; }
.history__hero p { margin-block-start: 1.5rem; max-inline-size: 52ch; font-size: 1.1875rem; color: var(--ink-2); }
.history__filters { display: flex; flex-wrap: wrap; gap: .625rem; margin-block-end: 2.25rem; }
.history__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.75rem; }
.history__grid li[hidden] { display: none; }
.history__wall, .history__clients { padding-block-start: var(--section); }
.history__wall .section-title, .history__clients .section-title { margin-block-end: 2.25rem; }
.wall { columns: 5 200px; column-gap: .875rem; margin-block-end: 2rem; }
.wall img { inline-size: 100%; margin-block-end: .875rem; border-radius: var(--radius-s); break-inside: avoid; }
.history__cta { padding-block: var(--section); text-align: center; }
.history__cta h2 { font-size: clamp(3rem, 1.8rem + 5vw, 5.75rem); margin-block-end: 2rem; }

/* ---------- production ---------- */
.production { display: grid; min-block-size: 100svh; padding-block-start: var(--header-h); }
.production__slides { list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; block-size: 60vh; }
.production__slides li { flex: 0 0 100%; scroll-snap-align: start; }
.production__slides img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.production__body { padding: 2.5rem var(--gutter) var(--section); }
.production__meta { color: var(--gold-ink); }
.production__title { margin-block-start: .75rem; font-size: var(--fs-h2); }
.production__content { margin-block-start: 1.5rem; font-size: 1.125rem; max-inline-size: 60ch; }
.production__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 2rem; }
.production__more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block-start: 3rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.production__more a { text-decoration: none; }
@media (min-width: 900px) {
	.production { grid-template-columns: 58% 1fr; padding-block-start: 0; }
	.production__slides { block-size: 100vh; position: sticky; inset-block-start: 0; }
	.production__body { padding: calc(var(--header-h) + 3rem) 3.5rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
	.room.is-open { animation: none; }
	.room-burst { display: none; }
}
