/*
Theme Name: Which Greek Island
Theme URI: https://whichgreekisland.co.uk
Author: Which Greek Island
Description: Custom theme for Which Greek Island. Renders island, resort, beach and sight pages straight from ACF fields, with no page builder required.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: wgi
*/

/* ---------- Tokens ---------- */
:root {
	--wgi-blue: #038ed8;
	--wgi-blue-dark: #0272ad;
	--wgi-gold: #e3b23c;
	--wgi-dark: #333333;
	--wgi-light: #ebebeb;
	--wgi-white: #ffffff;
	--wgi-text: #333333;
	--wgi-container: 1120px;
	--wgi-gutter: 16px;
	--wgi-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wgi-font-heading: "ABeeZee", sans-serif;
	--wgi-font-display: "Waiting for the Sunrise", cursive;
	--wgi-glass-bg: rgba(3, 142, 246, 0.1);
	--wgi-glass-border: 1px solid rgba(255, 255, 255, 0.18);
	--wgi-glass-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
	--wgi-overlay: rgba(51, 51, 51, 0.5);
	--wgi-topo: none; /* set inline from PHP */
	--wgi-header-h: 120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--wgi-font-body);
	font-size: 16px;
	line-height: 1.4;
	color: var(--wgi-text);
	background: var(--wgi-light);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wgi-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--wgi-font-heading); font-weight: 400; margin: 0 0 .5em; line-height: 1.5; }
h2 { font-size: 40px; }
h3 { font-size: 20px; }
.blueaccent { color: var(--wgi-blue); font-family: var(--wgi-font-display); font-weight: 700; font-synthesis: weight; -webkit-text-stroke: .5px currentColor; }
.whiteaccent { color: var(--wgi-white); font-family: var(--wgi-font-display); font-weight: 700; font-synthesis: weight; -webkit-text-stroke: .5px currentColor; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }

.wgi-container { width: 100%; max-width: var(--wgi-container); margin: 0 auto; padding: 0 var(--wgi-gutter); }

/* ---------- Buttons ---------- */
.wgi-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 30px; font-family: var(--wgi-font-heading); font-size: 15px;
	background: var(--wgi-blue); color: #fff; border: 1px solid transparent;
	transition: all .25s ease-in-out; cursor: pointer; text-decoration: none;
}
.wgi-btn:hover { background: var(--wgi-blue-dark); color: #fff; text-decoration: none; }
.wgi-btn--outline { background: transparent; border: 3px solid #fff; padding: 14px 24px; }
.wgi-btn--outline:hover { background: var(--wgi-blue); border-color: var(--wgi-blue); }
.wgi-btn-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }

/* ---------- Glass ---------- */
.glass {
	background: var(--wgi-glass-bg);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border: var(--wgi-glass-border);
	border-radius: 5px;
	box-shadow: var(--wgi-glass-shadow);
}

/* ---------- Header ---------- */
.wgi-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--wgi-header-h);
	transition: background-color .3s ease, height .3s ease, box-shadow .3s ease;
}
.admin-bar .wgi-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wgi-header { top: 46px; } }
.wgi-header.is-scrolled, .wgi-header.is-solid {
	background: var(--wgi-blue);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
	height: 84px;
}
.wgi-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 20px; }
.wgi-header__logo img { width: 160px; height: auto; transition: width .3s ease; }
.wgi-header.is-scrolled .wgi-header__logo img { width: 110px; }
.wgi-header__social { display: flex; gap: 12px; }
.wgi-social { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; }
.wgi-social svg { width: 22px; height: 22px; fill: currentColor; }
.wgi-social:hover { color: var(--wgi-blue); }

/* Nav */
.wgi-nav { display: flex; align-items: center; }
.wgi-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.wgi-nav__item { position: relative; }
.wgi-nav__link {
	display: flex; align-items: center; gap: 6px; padding: 18px 16px;
	color: #fff; font-family: var(--wgi-font-heading); font-size: 15px; background: none; border: 0; cursor: pointer;
}
.wgi-nav__link:hover, .wgi-nav__item.is-open > .wgi-nav__link { color: var(--wgi-blue); text-decoration: none; }
.wgi-nav__caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.wgi-dropdown {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
	background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transition: all .2s ease;
}
.wgi-nav__item.is-open > .wgi-dropdown,
.wgi-nav__item:hover > .wgi-dropdown,
.wgi-nav__item:focus-within > .wgi-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.wgi-dropdown--islands { width: 1320px; max-width: 97vw; }
.wgi-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px; }
.wgi-mega--desktop { grid-auto-flow: column; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 28px; padding: 24px 36px; max-height: calc(100vh - 150px); overflow: hidden auto; }
.wgi-mega--desktop .wgi-mega__island { gap: 14px; padding: 4px 10px; }
.wgi-mega--desktop .wgi-mega__links { gap: 8px; }
.wgi-mega__item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; color: var(--wgi-dark); font-size: 14px; line-height: 20px; border-radius: 4px; }
.wgi-mega__item:hover { background: var(--wgi-light); color: var(--wgi-blue); text-decoration: none; }
.wgi-menu-icon--sm { width: 24px !important; height: 24px !important; min-width: 24px; padding: 2px !important; background: transparent !important; }
.wgi-menu-icon--sm svg { width: 100%; height: 100%; }
.wgi-mega--mobile { display: none; }
.wgi-mega__island, .wgi-book a {
	display: flex; align-items: center; gap: 20px; padding: 5px 10px; background: #fff;
	border-radius: 5px; transition: background-color .2s ease;
}
.wgi-mega__island:hover, .wgi-book a:hover { background: var(--wgi-light); text-decoration: none; }
.wgi-menu-icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 5px; background: var(--wgi-light); color: var(--wgi-dark); }
.wgi-menu-icon svg { width: 30px; height: 30px; fill: currentColor; }
.wgi-menu-icon--brand { width: 41px; height: 41px; padding: 8px; }
.wgi-menu-icon--brand svg { width: 25px; height: 25px; }
.wgi-mega__island:hover .wgi-menu-icon, .wgi-book a:hover .wgi-menu-icon { background: #fff; }
.wgi-mega__text { display: flex; flex-direction: column; gap: 2px; }
.wgi-mega__name { color: var(--wgi-dark); font-size: 15px; font-weight: 600; }
.wgi-mega__links { display: flex; gap: 10px; font-size: 14px; }
.wgi-mega__links a { color: var(--wgi-dark); }
.wgi-mega__name:hover, .wgi-mega__links a:hover { color: var(--wgi-blue); text-decoration: none; }
.wgi-mega__all { display: flex; align-items: center; gap: 20px; background: var(--wgi-light); padding: 15px 40px; color: var(--wgi-dark); }
.wgi-mega__all:hover { text-decoration: none; background: #e2e2e2; }
.wgi-mega__all .wgi-menu-icon { background: #fff; }
.wgi-mega__all strong, .wgi-book strong { display: block; font-size: 15px; font-weight: 600; line-height: 21px; color: var(--wgi-dark); }
.wgi-mega__all small, .wgi-book small { display: block; font-size: 13px; line-height: 18px; color: #999; }
.wgi-book { list-style: none; margin: 0; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 640px; max-width: 94vw; }
.wgi-header.is-scrolled .wgi-nav__link:hover, .wgi-header.is-scrolled .wgi-nav__item.is-open > .wgi-nav__link, .wgi-header.is-scrolled .wgi-social:hover { color: var(--wgi-dark); }

.wgi-burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.wgi-burger span, .wgi-burger::before, .wgi-burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .25s ease, opacity .25s ease; }
.wgi-burger span { top: 21px; }
.wgi-burger::before { top: 14px; }
.wgi-burger::after { top: 28px; }
.nav-open .wgi-burger span { opacity: 0; }
.nav-open .wgi-burger::before { transform: translateY(7px) rotate(45deg); }
.nav-open .wgi-burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
	.wgi-burger { display: block; order: 3; }
	.wgi-header__social { display: none; }
	.wgi-nav {
		position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 86vw);
		background: var(--wgi-dark); transform: translateX(-100%); transition: transform .3s ease;
		overflow-y: auto; padding: 90px 0 30px; align-items: flex-start; z-index: 99;
	}
	.nav-open .wgi-nav { transform: none; }
	.wgi-nav__list { flex-direction: column; align-items: stretch; width: 100%; }
	.wgi-nav__link { padding: 14px 24px; width: 100%; justify-content: space-between; font-size: 18px; }
	.wgi-header.is-scrolled .wgi-nav__link:hover, .wgi-header.is-scrolled .wgi-nav__item.is-open > .wgi-nav__link { color: var(--wgi-blue); }
	.wgi-dropdown, .wgi-dropdown--islands {
		position: static; transform: none !important; width: auto; max-width: none; box-shadow: none;
		background: rgba(255, 255, 255, .06); padding: 0 16px; max-height: 0; overflow: hidden; opacity: 1; visibility: visible;
		transition: max-height .3s ease;
	}
	.wgi-nav__item:hover > .wgi-dropdown { max-height: 0; }
	.wgi-nav__item.is-open > .wgi-dropdown { max-height: 4000px; }
	.wgi-mega, .wgi-book { grid-template-columns: 1fr; width: auto; padding: 10px 0; gap: 8px; }
	.wgi-mega--desktop { display: none; }
	.wgi-mega--mobile { display: block; padding: 4px 0 10px; }
	.wgi-mgroup { border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.wgi-mgroup summary { list-style: none; cursor: pointer; padding: 12px 8px; color: #fff; font-family: var(--wgi-font-heading); font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
	.wgi-mgroup summary::-webkit-details-marker { display: none; }
	.wgi-mgroup summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-left: 10px; }
	.wgi-mgroup[open] summary::after { transform: rotate(-135deg); }
	.wgi-mgroup__count { margin-left: auto; font-size: 12px; color: #aaa; }
	.wgi-mgroup ul { list-style: none; margin: 0; padding: 0 0 8px 16px; }
	.wgi-mgroup li a { display: block; padding: 8px; color: #ddd; font-size: 15px; }
	.wgi-mgroup li a:hover { color: #fff; text-decoration: none; }
	.wgi-mega__island, .wgi-book a { background: transparent; }
	.wgi-mega__name, .wgi-book strong, .wgi-mega__all strong { color: #fff; }
	.wgi-mega__links a { color: #ddd; }
	.wgi-mega__all { background: transparent; padding: 10px; margin-bottom: 10px; }
	.wgi-nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 98; }
	.nav-open .wgi-nav-overlay { opacity: 1; visibility: visible; }
	.wgi-header__logo img { width: 120px; }
	:root { --wgi-header-h: 90px; }
}

/* ---------- Hero ---------- */
.wgi-hero {
	position: relative; min-height: 450px; display: flex; align-items: center; justify-content: center;
	text-align: center; color: #fff; background: var(--wgi-dark) center / cover no-repeat;
	padding: calc(var(--wgi-header-h) + 10px) 10px 30px;
}
.wgi-hero::before { content: ""; position: absolute; inset: 0; background: var(--wgi-overlay); }
.wgi-hero--home::before { background: rgba(0, 0, 0, .35); }
.wgi-hero__inner { position: relative; max-width: 100%; }
.wgi-hero__title { font-family: var(--wgi-font-display); font-size: 80px; letter-spacing: 2.2px; line-height: 1.2; margin: 0 0 .1em; color: #fff; }
.wgi-hero__subtitle { font-size: 24px; margin: 0 0 12px; color: #fff; }
.wgi-breadcrumbs, .wgi-breadcrumbs a { color: #fff; font-size: 16px; }
.wgi-breadcrumbs p { margin: 0; }
@media (max-width: 767px) {
	.wgi-hero { min-height: 380px; }
	.wgi-hero__title { font-size: 56px; }
	.wgi-hero__subtitle { font-size: 19px; }
}

/* ---------- Sections ---------- */
.wgi-section { position: relative; }
.wgi-section--light { background: var(--wgi-light); isolation: isolate; }
.wgi-section--light::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--wgi-topo) center top / 600px auto repeat;
	opacity: .15;
}
.wgi-section--light > .wgi-container { padding-top: 48px; padding-bottom: 48px; }
.wgi-section--light > .wgi-container.wgi-pad-end { padding-bottom: 96px; }
.wgi-block { margin: 0 0 40px; }
.wgi-block:last-child { margin-bottom: 0; }
.wgi-block > h2 { margin-bottom: 20px; }
.wgi-center { text-align: center; }

.wgi-split { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.wgi-split > * { flex: 1 1 0; min-width: 0; }
.wgi-split__media img { width: 100%; height: auto; }
.wgi-media--crop { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.wgi-media--crop img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 40%; }
.wgi-split__media a { display: block; }
.wgi-split--reverse { flex-direction: row-reverse; }
.wgi-map { width: 100%; height: 400px; border: 0; display: block; }
.wgi-embed iframe { width: 100%; min-height: 600px; border: 0; }
@media (max-width: 767px) {
	h2 { font-size: 32px; }
	.wgi-split, .wgi-split--reverse { flex-direction: column; align-items: stretch; }
	.wgi-split--text-first { flex-direction: column; }
}

/* Image band with glass panel */
.wgi-band {
	position: relative; background: var(--wgi-dark) center / cover no-repeat; color: #fff;
	padding: 54px 20px; min-height: 400px; display: flex; align-items: center; justify-content: center;
}
.wgi-band::before { content: ""; position: absolute; inset: 0; background: var(--wgi-overlay); }
.wgi-band > * { position: relative; }
.wgi-band__panel { max-width: 864px; width: 100%; padding: 27px 13px 36px; text-align: center; }
.wgi-band__panel h2 { color: #fff; }
.wgi-band__panel .wgi-band__text { max-width: 836px; margin: 0 auto 24px; }
@media (min-width: 768px) { .wgi-band { background-attachment: fixed; } }
@media (hover: none) { .wgi-band { background-attachment: scroll; } }

/* Ads */
.wgi-ad { margin: 0 0 40px; }
.wgi-ad--placeholder { height: 100px; background: var(--wgi-blue); display: flex; align-items: center; justify-content: center; font-family: var(--wgi-font-heading); color: var(--wgi-dark); }

/* ---------- At a glance ---------- */
.wgi-glance { background-image: var(--wgi-glance-bg); }
.wgi-glance .wgi-container { padding-top: 54px; padding-bottom: 54px; text-align: center; }
.wgi-glance h2 { color: #fff; }
.wgi-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 160px); gap: 40px; justify-content: center; }
.wgi-icon-card { width: 160px; min-height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 15px; color: #fff; font-family: var(--wgi-font-heading); line-height: 1.3; }
.wgi-icon-card img { width: 100%; max-width: 80px; height: auto; }
@media (max-width: 600px) {
	.wgi-icons { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.wgi-icon-card { width: auto; }
}

/* ---------- Card grid (overviews / home) ---------- */
.wgi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.wgi-card { display: block; position: relative; height: 400px; padding: 30px; background: var(--wgi-blue) center / cover no-repeat; color: #fff; overflow: hidden; }
.wgi-card::before { content: ""; position: absolute; inset: 0; background: transparent; transition: background-color .25s ease; opacity: .4; }
.wgi-card:hover { text-decoration: none; }
.wgi-card:hover::before { background: var(--wgi-dark); }
.wgi-card__panel { position: relative; padding: 10px; text-align: center; }
.wgi-card__title { font-size: 22px; color: #fff; margin: 0 0 8px; }
.wgi-card__text { font-size: 14px; line-height: 1.45; color: #fff; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.wgi-card--compact .wgi-card__title { margin: 0; }
@media (max-width: 1023px) { .wgi-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wgi-cards { grid-template-columns: 1fr; } .wgi-card { height: 340px; } }

/* ---------- Carousel (weather + hotels) ---------- */
.wgi-carousel { position: relative; padding: 0 56px; }
.wgi-carousel__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 2px 20px; scrollbar-width: none; }
.wgi-carousel__track::-webkit-scrollbar { display: none; }
.wgi-carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.wgi-carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wgi-carousel__btn:hover { background: var(--wgi-blue); }
.wgi-carousel__btn--prev { left: 4px; }
.wgi-carousel__btn--next { right: 4px; }
.wgi-carousel__btn svg { width: 18px; height: 18px; fill: currentColor; }
.wgi-carousel--dark .wgi-carousel__btn { background: var(--wgi-dark); }
@media (max-width: 600px) { .wgi-carousel { padding: 0; } .wgi-carousel__btn { display: none; } }

/* ---------- Weather ---------- */
.wgi-weather { background-image: var(--wgi-weather-bg); }
.wgi-weather .wgi-container { padding-top: 50px; padding-bottom: 50px; text-align: center; }
.wgi-weather h2 { color: #fff; }
.wgi-weather__intro { color: #fff; max-width: 900px; margin: 0 auto 24px; }
.wgi-month { width: 218px; padding: 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.wgi-month__name { font-family: var(--wgi-font-heading); font-size: 24px; }
.wgi-month__high { display: flex; align-items: center; gap: 10px; font-family: var(--wgi-font-heading); font-size: 34px; }
.wgi-month__high svg { width: 38px; height: 38px; fill: var(--wgi-gold); }
.wgi-month__row { display: flex; gap: 15px; font-size: 15px; }
.wgi-month__row span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wgi-month__row svg { width: 18px; height: 18px; fill: #fff; }
.wgi-weather__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; color: #fff; font-size: 14px; margin-top: 6px; }
.wgi-weather__legend span { display: inline-flex; align-items: center; gap: 6px; }
.wgi-weather__legend svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- Hotels ---------- */
.wgi-hotel { width: 295px; height: 400px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; position: relative; color: #fff; background: var(--wgi-dark) center / cover no-repeat; }
.wgi-hotel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.wgi-hotel > * { position: relative; }
.wgi-hotel__name { padding: 15px; text-align: center; }
.wgi-hotel__name h3 { margin: 0; color: #fff; }
.wgi-hotel__btn { background: var(--wgi-blue); color: #fff; text-align: center; padding: 10px; transition: background .2s ease; }
.wgi-hotel:hover { text-decoration: none; }
.wgi-hotel:hover .wgi-hotel__btn { background: var(--wgi-blue-dark); }

/* ---------- Gallery ---------- */
.wgi-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.wgi-gallery figure { margin: 0; background: var(--wgi-blue); height: 100%; }
.wgi-gallery a.wgi-lightbox { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.wgi-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wgi-gallery a.wgi-lightbox:hover img { transform: scale(1.04); }
.wgi-gallery figcaption { padding: 10px; color: #fff; font-size: 15px; }
.wgi-gallery figcaption a { color: var(--wgi-gold); }
@media (max-width: 1023px) { .wgi-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wgi-gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.wgi-lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 1000; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 40px 60px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.wgi-lb.is-open { opacity: 1; visibility: visible; }
.wgi-lb img { max-height: 82vh; max-width: 100%; width: auto; }
.wgi-lb__cap { color: #fff; margin-top: 12px; text-align: center; }
.wgi-lb__cap a { color: var(--wgi-gold); }
.wgi-lb__count { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px; }
.wgi-lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; padding: 10px; }
.wgi-lb__close { top: 10px; right: 16px; }
.wgi-lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.wgi-lb__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Home ---------- */
.wgi-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.wgi-promo__media { position: relative; height: 350px; background: var(--wgi-dark) center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; }
.wgi-promo__media::before { content: ""; position: absolute; inset: 0; background: rgba(51, 51, 51, .35); transition: background .25s ease; }
.wgi-promo__media:hover::before { background: rgba(51, 51, 51, .15); }
.wgi-promo__media > * { position: relative; }
.wgi-promo__label { font-family: var(--wgi-font-heading); font-size: 24px; }
.wgi-promo__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.wgi-promo__play svg { width: 28px; height: 28px; fill: var(--wgi-blue); margin-left: 4px; }
.wgi-promo__media:hover { text-decoration: none; }
@media (max-width: 767px) { .wgi-promo { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.wgi-content { max-width: 100%; }
.wgi-content h2 { margin-top: 1.2em; }
.wgi-content h2:first-child { margin-top: 0; }
.wgi-content .wp-block-columns { gap: 30px; align-items: center; margin-bottom: 40px; }
.wgi-content .wp-block-image { margin: 0 0 1em; }
.wgi-content .wp-block-gallery { gap: 16px; }
.wgi-content .wp-block-button__link { background: var(--wgi-blue); border-radius: 0; font-family: var(--wgi-font-heading); }
.wgi-content table { border-collapse: collapse; width: 100%; }
.wgi-content td, .wgi-content th { border: 1px solid #ccc; padding: 8px; }
.wgi-content input[type=text], .wgi-content input[type=email], .wgi-content textarea { width: 100%; padding: 10px; border: 1px solid #ccc; font: inherit; }
.wgi-content input[type=submit] { background: var(--wgi-blue); color: #fff; border: 0; padding: 12px 28px; font-family: var(--wgi-font-heading); cursor: pointer; }
.wgi-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1023px) { .wgi-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wgi-posts { grid-template-columns: 1fr; } }
.wgi-pagination { margin-top: 30px; display: flex; gap: 8px; justify-content: center; }
.wgi-pagination .page-numbers { padding: 8px 14px; background: #fff; }
.wgi-pagination .current { background: var(--wgi-blue); color: #fff; }

/* ---------- Footer ---------- */
.wgi-footer { background: var(--wgi-dark); color: #fff; text-align: center; padding: 70px 20px 15px; }
.wgi-footer__logo { width: 114px; margin: 0 auto 20px; }
.wgi-footer__nav ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.wgi-footer__nav a { color: #fff; padding: 16px; display: block; font-family: var(--wgi-font-heading); }
.wgi-footer__nav a:hover { color: var(--wgi-blue); text-decoration: none; }
.wgi-footer__social { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.wgi-footer__social .wgi-social { color: var(--wgi-blue); }
.wgi-footer__social .wgi-social:hover { color: #fff; }
.wgi-footer__copy { font-size: 15px; margin: 0; }

/* ---------- Tabs (Islands page groups) ---------- */
.wgi-tabs { margin-top: 30px; }
.wgi-tabs__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 30px; padding: 0; list-style: none; }
.wgi-tabs__tab { font-family: var(--wgi-font-heading); font-size: 16px; padding: 10px 18px; border: 2px solid var(--wgi-blue); background: #fff; color: var(--wgi-blue); border-radius: 30px; cursor: pointer; transition: background .2s, color .2s; }
.wgi-tabs__tab:hover, .wgi-tabs__tab[aria-selected="true"] { background: var(--wgi-blue); color: #fff; }
.wgi-tabs__panel[hidden] { display: none; }
.wgi-tabs__panel > .wgi-block:first-child { margin-top: 0; }
.wgi-tabs__panel .wgi-cards { margin-top: 30px; }
@media (max-width: 600px) { .wgi-tabs__tab { font-size: 14px; padding: 8px 12px; } }
