/* Additional sections ([greif_location_sections]). Builds on the theme's g-* components and tokens. */

/* Carousels: theme .g-carousel / .g-track, tightened header and responsive columns. */
.gl-carousel .g-carousel__head { margin-bottom: var(--space-lg); }
/* Astra's global `button` padding squeezes the 48px icon buttons to nothing. */
.gl-carousel .g-iconbtn { padding: 0; }
.gl-carousel .g-iconbtn svg { width: 20px; height: 20px; }
/* Colours follow the section: navy on light sections, white inside .gl-dark (navy pattern band). */
.gl-carousel .g-iconbtn { background: transparent; color: var(--clr-navy); border-color: var(--clr-navy); }
.gl-dark .gl-carousel .g-iconbtn { color: var(--clr-white); border-color: var(--clr-white); }
.gl-dark .gl-carousel .g-iconbtn:hover { background: var(--clr-white); color: var(--clr-navy); }
.gl-dl__link { color: var(--clr-navy); }
.gl-dark .gl-dl__link { color: var(--clr-white); }
.gl-carousel .g-dots { display: none; }
@media (max-width: 1024px) {
	.gl-track { grid-auto-columns: calc((100% - var(--space-lg)) / 2); }
}
@media (max-width: 767px) {
	.gl-track { grid-auto-columns: 82%; }
}

/* Download cards (sell sheets), matching the homepage UNPACKED carousel on a .g-sec--pattern band. */
.gl-dark .g-h2.g-ink { color: var(--clr-white); }
.gl-dark .g-dots button { background: var(--clr-white-30); }
.gl-dark .g-dots button[aria-selected="true"] { background: var(--clr-neon); }

.gl-dl { display: flex; flex-direction: column; height: 100%; }
.gl-dl__thumb {
	display: block; margin: 0; aspect-ratio: 17 / 22; overflow: hidden; /* whole sell sheet (US Letter) */
	border-radius: 20px; background: var(--clr-white);
}
.gl-dl .gl-dl__thumb img { /* .gl-dl prefix beats Elementor's `.elementor img { height:auto }` */
	display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center;
	border-radius: 20px; transition: transform .4s var(--ease-out);
}
.gl-dl__thumb:hover img { transform: scale(1.04); }
.gl-dl__title {
	margin: var(--space-md) 0 0; color: var(--clr-heading);
	font-family: "Roboto", sans-serif; font-size: var(--type-h3); font-weight: 500; line-height: var(--leading-snug);
}
.gl-dark .gl-dl__title { color: var(--clr-white); }
.gl-dl__foot { margin-top: auto; padding-top: var(--space-md); }
.gl-dl__foot::before { content: ""; display: block; height: 1px; margin-bottom: var(--space-md); background: #D1D5DB; }

/* Product cards ([greif_location_products]): landscape product photo. */
.gl-dl--product .gl-dl__thumb { aspect-ratio: 4 / 3; }
.gl-dl.gl-dl--product .gl-dl__thumb img { object-fit: cover; }
.gl-dl__thumb--empty { background: linear-gradient(135deg, var(--clr-navy), var(--clr-green)); }
.gl-dl__link, .gl-vid__link { font-weight: 500; gap: 8px; }
.gl-dl__link svg, .gl-vid__link svg { width: 14px; height: 14px; }
.gl-dl__link:hover svg, .gl-vid__link:hover svg { transform: translate(2px, -2px); }

/* Video cards: thumbnail with play button, opens Elementor's lightbox. */
.gl-vid__thumb { display: block; aspect-ratio: 16 / 9; background: var(--clr-navy); }
.gl-vid__thumb img { transition: transform .4s var(--ease-out); }
.gl-vid__play {
	position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
	display: flex; align-items: center; justify-content: center;
	border-radius: var(--radius-pill); background: var(--clr-neon); color: var(--clr-black);
	box-shadow: var(--shadow-md); transition: transform .2s var(--ease-out);
}
.gl-vid__play svg { width: 26px; height: 26px; margin-left: 3px; }
.gl-vid__thumb:hover .gl-vid__play, .gl-vid__thumb:focus-visible .gl-vid__play { transform: scale(1.08); }

/* 2 · Overview without a video: one readable centred column (design: .g-wrap--narrow, 900px). */
.gl-overview--narrow { max-width: 900px; margin-inline: auto; }

/* 4 · Documents & certifications: columns start level; the documents list runs in 2 columns (4+ items). */
.gl-docs-certs { align-items: start; }
.gl-speclist--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
.gl-speclist--2 > li { min-width: 0; overflow-wrap: anywhere; }
/* Beside the certifications the column is half width: back to 1 column once that gets narrow. */
@media (max-width: 1100px) {
	.gl-docs-certs .gl-speclist--2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.gl-speclist--2 { grid-template-columns: 1fr; }
}

/* 3b · Acquired-brand gallery: logo tile beside the intro (design site.css, not in the theme yet). */
.g-loc-acq { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.g-loc-acq__logo { padding: var(--space-sm); }
.g-loc-acq__logo .g-logotile__well { height: auto; aspect-ratio: 3 / 2; }
.g-loc-acq__logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 768px) {
	.g-loc-acq { grid-template-columns: 96px minmax(0, 1fr); }
}

/* Text block with an image beside it. */
.gl-split { align-items: center; }
.gl-split .gl-text { display: flex; flex-direction: column; gap: var(--space-md); }
.gl-split .g-media img { height: auto; }
