/* Amin Portfolio widgets: slideshow, gallery, category tile, navigation, site header */

.amp-sr-only, .amp-sr-only.elementor-widget {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.amp-note { margin: 0; font-size: .85rem; color: #6d6c69; }

/* ---------- Site header wrapper ---------- */
.amp-header-wrap { position: relative; z-index: 30; }
.amp-header-wrap.is-overlay { position: absolute; top: 0; left: 0; right: 0; }
.amp-header-wrap .elementor-widget-heading { position: relative; z-index: 3; }
.amp-header-wrap[data-tone="light"] { --amp-tone: #fff; }
.amp-header-wrap[data-tone="dark"] { --amp-tone: #0b0b0b; }
.amp-header-wrap.has-tone .elementor-heading-title,
.amp-header-wrap.has-tone .elementor-heading-title a,
.amp-header-wrap.has-tone .amp-nav__list a,
.amp-header-wrap.has-tone .amp-nav__toggle,
.amp-header-wrap.has-tone .elementor-widget-text-editor,
.amp-header-wrap.has-tone .elementor-widget-text-editor a {
	color: var(--amp-tone, #0b0b0b) !important; transition: color .6s ease;
}
.amp-header-wrap[data-tone-mode="blend"] { mix-blend-mode: difference; }
html.amp-nav-open .amp-header-wrap[data-tone-mode="blend"] { mix-blend-mode: normal; }
html.amp-nav-open .amp-header-wrap.has-tone .amp-nav__list a,
html.amp-nav-open .amp-header-wrap.has-tone .amp-nav__toggle { color: var(--amp-nav-panel-fg, #0b0b0b) !important; }
html.amp-nav-open .amp-header-wrap.has-tone .elementor-heading-title,
html.amp-nav-open .amp-header-wrap.has-tone .elementor-heading-title a { color: var(--amp-nav-panel-fg, #0b0b0b) !important; }

/* ---------- Sticky header ---------- */
/* In flow (normal header): sticks to the top. Overlay header (homepage): fixed, which looks
   identical at the top of the page, so nothing moves when it starts to stick. */
.amp-header-wrap.has-sticky.amp-sticky-ready {
	position: sticky; top: var(--amp-ab, var(--wp-admin--admin-bar--height, 0px)); z-index: 100;
}
.amp-header-wrap.has-sticky.amp-sticky-ready.is-overlay { position: fixed; left: 0; right: 0; }

/* Two layers behind the header's content: the background and the shadow. They fade in and out. */
/* (no isolation needed: the sticky wrapper is already its own layer, so these stay behind the content) */
.amp-header-wrap.has-sticky .elementor { position: relative; }
.amp-header-wrap.has-sticky .elementor::before,
.amp-header-wrap.has-sticky .elementor::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
	transition: opacity var(--amp-sticky-dur, 300ms) ease;
}
.amp-header-wrap.has-sticky .elementor::before { background: var(--amp-sticky-bg, #fff); }
.amp-header-wrap.has-sticky .elementor::after { box-shadow: 0 1px 14px rgba(0, 0, 0, var(--amp-sticky-shadow, .08)); }
.amp-header-wrap.has-sticky.is-stuck .elementor::before { opacity: var(--amp-sticky-op, .92); }
.amp-header-wrap.has-sticky.is-stuck .elementor::after { opacity: 1; }

/* Height and spacing animate between the normal and the sticky look. */
.amp-header-wrap.has-sticky .elementor > .e-con {
	transition: min-height var(--amp-sticky-dur, 300ms) ease, padding var(--amp-sticky-dur, 300ms) ease;
}
/* default only: kept low-specificity so the Elementor control always wins */
:where(.amp-header-wrap.has-sticky.is-stuck .elementor) > .e-con { min-height: 64px !important; }

/* Sticky look: black (or the chosen colour) text and icons for steady readability. */
.amp-header-wrap.has-sticky :is(.elementor-heading-title, .elementor-heading-title a, .amp-nav__list a, .amp-nav__toggle, .elementor-widget-text-editor, .elementor-widget-text-editor a, .elementor-icon, .elementor-icon-list-text, .elementor-icon-list-icon, .elementor-social-icon) {
	transition: color var(--amp-sticky-dur, 300ms) ease, border-color var(--amp-sticky-dur, 300ms) ease;
}
.amp-header-wrap.has-sticky.is-stuck :is(.elementor-heading-title, .elementor-heading-title a, .amp-nav__list a, .amp-nav__toggle, .elementor-widget-text-editor, .elementor-widget-text-editor a, .elementor-icon, .elementor-icon i, .elementor-icon-list-text, .elementor-icon-list-icon i, .elementor-social-icon, .elementor-social-icon i) {
	color: var(--amp-sticky-fg, #0b0b0b) !important;
}
.amp-header-wrap.has-sticky.is-stuck :is(.elementor-icon svg, .elementor-icon-list-icon svg, .elementor-social-icon svg) {
	fill: var(--amp-sticky-fg, #0b0b0b) !important;
}
/* The classic contact layout blends its header with the photo; a solid bar cannot blend. */
.amp-header-wrap.has-sticky.is-stuck[data-tone-mode="blend"] { mix-blend-mode: normal; }

/* The open mobile menu keeps its own colours. */
html.amp-nav-open .amp-header-wrap.has-sticky.is-stuck :is(.amp-nav__list a, .amp-nav__toggle, .elementor-heading-title, .elementor-heading-title a) {
	color: var(--amp-nav-panel-fg, #0b0b0b) !important;
}
html.amp-nav-open .amp-header-wrap.has-sticky.is-stuck .elementor::before { opacity: 0; }
html.amp-nav-open .amp-header-wrap.has-sticky.is-stuck .elementor::after { opacity: 0; }

/* Used by the script for the very first state, and while it measures. */
.amp-header-wrap.amp-no-anim,
.amp-header-wrap.amp-no-anim *,
.amp-header-wrap.amp-no-anim .elementor::before,
.amp-header-wrap.amp-no-anim .elementor::after { transition: none !important; }

/* Reduced motion: the header still changes look, but instantly. */
@media (prefers-reduced-motion: reduce) {
	.amp-header-wrap.has-sticky,
	.amp-header-wrap.has-sticky *,
	.amp-header-wrap.has-sticky .elementor::before,
	.amp-header-wrap.has-sticky .elementor::after { transition-duration: .01ms !important; }
}

/* ---------- Hero slideshow ---------- */
.amp-hero {
	--amp-px: 50%; --amp-py: 50%;
	position: relative; overflow: hidden; width: 100%; height: 100vh; max-height: 100svh;
	background: #111; margin: 0 auto;
}
.amp-hero--empty { background: #e8e6e1; }
.amp-hero__note { position: absolute; left: 4.2vw; bottom: 1rem; margin: 0; font-size: .75rem; color: #6d6c69; }
.amp-hero__slides, .amp-hero__slide, .amp-hero__tint { position: absolute; inset: 0; }
.amp-hero__tint { pointer-events: none; opacity: 0; z-index: 2; }
.amp-hero__slide {
	opacity: 0; visibility: hidden;
	transition: opacity var(--amp-fade, 1100ms) ease, visibility 0s linear var(--amp-fade, 1100ms);
}
.amp-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--amp-fade, 1100ms) ease, visibility 0s; }
.elementor .amp-hero .amp-hero__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.elementor .amp-hero .amp-hero__img.is-contain { object-fit: contain !important; }
@media (max-width: 767px) { .elementor .amp-hero .amp-hero__img { object-position: var(--mfx, 50%) var(--mfy, 50%); } }
.elementor .amp-hero--manual .amp-hero__img { object-position: var(--amp-px, 50%) var(--amp-py, 50%); }

.amp-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 3.5rem; height: 6rem;
	display: flex; align-items: center; justify-content: center; color: #fff; background: none; border: 0; padding: 0;
	cursor: pointer; opacity: .9; transition: opacity .2s, color .2s; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .55));
}
.amp-hero__arrow:hover { opacity: 1; }
.amp-hero__prev { left: 8px; }
.amp-hero__next { right: 8px; }
.amp-hero__arrow svg { display: block; height: 44px; width: auto; }
.amp-hero__arrow svg path { stroke-width: 1.5; }
.amp-hero__controls {
	position: absolute; left: 0; right: 0; bottom: var(--amp-dots-y, 24px); z-index: 5; display: flex; align-items: center;
	justify-content: flex-start; gap: 1.1rem; padding: 0 4.2vw; color: #fff; pointer-events: none;
}
.amp-hero__controls > * { pointer-events: auto; }
.amp-hero__dots { display: flex; gap: 10px; }
.amp-hero__dot { width: 36px; height: 24px; position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.amp-hero__dot::after {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
	background: var(--amp-dot, #fff); opacity: .5; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); transition: opacity .3s, background .3s;
}
.amp-hero__dot.is-active::after { background: var(--amp-dot-active, #fff); opacity: 1; }
.amp-hero__pause { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.amp-hero__pause svg { width: 12px; height: 12px; }
.amp-hero__pause .i-play, .amp-hero__pause.is-paused .i-pause { display: none; }
.amp-hero__pause.is-paused .i-play { display: block; }
.amp-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .amp-hero__slide, .amp-hero__slide.is-active { transition: none; } }

/* ---------- Category tile ---------- */
.amp-tile { display: block; color: inherit; text-decoration: none; }
.amp-tile__img { display: block; overflow: hidden; background: #e8e6e1; aspect-ratio: 4 / 3; }
.elementor .amp-tile__img img {
	display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
	object-position: var(--amp-px, 50%) var(--amp-py, 50%); transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.elementor .amp-tile-zoom-yes .amp-tile:hover .amp-tile__img img { transform: scale(1.03); }
.amp-tile__label {
	display: flex; align-items: center; justify-content: flex-start; gap: .9rem; margin-top: 14px;
	font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; line-height: 1.4; color: #0b0b0b;
}
.amp-tile__rule { flex: 0 0 36px; height: 1px; background: currentColor; transition: flex-basis .35s cubic-bezier(.2, .6, .2, 1); }
.amp-tile:hover .amp-tile__rule, .amp-tile:focus-visible .amp-tile__rule { flex-basis: 56px; }
.amp-tile:focus-visible { outline: 2px solid #0b0b0b; outline-offset: 4px; }

/* ---------- Gallery ---------- */
.amp-gallery { --amp-gap: 12px; --amp-cols: 3; --amp-row-h: 272px; --amp-aspect: 1 / 1; }
.amp-g__item { margin: 0; min-width: 0; }
.amp-g__link { display: block; cursor: zoom-in; color: inherit; }
.amp-g__media { display: block; overflow: hidden; background: #e8e6e1; aspect-ratio: var(--ar, 1.5); }
.elementor .amp-g__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: opacity .3s, transform .8s cubic-bezier(.2, .6, .2, 1); }
.elementor .amp-g-hover-fade .amp-g__link:hover img { opacity: .9; }
.elementor .amp-g-hover-zoom .amp-g__link:hover img { transform: scale(1.03); }
.amp-g__cap { margin-top: 8px; font-size: .75rem; line-height: 1.6; color: #0b0b0b; }

.amp-gallery--justified { display: flex; flex-wrap: wrap; gap: var(--amp-gap); }
.amp-gallery--justified:not(.amp-gallery--stretch)::after { content: ""; flex-grow: 1000000; }
.amp-gallery--justified .amp-g__item { flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--amp-row-h)); }

.amp-gallery--grid, .amp-gallery--masonry {
	display: grid; grid-template-columns: repeat(var(--amp-cols), minmax(0, 1fr)); gap: var(--amp-gap); align-items: start;
}
.amp-gallery--grid .amp-g__media { aspect-ratio: var(--amp-aspect); }
.amp-gallery--masonry.is-ready { display: flex; align-items: flex-start; }
.amp-gallery__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--amp-gap); }

/* Photo viewer */
html.amp-lb-open { overflow: hidden; }
dialog.amp-lb {
	border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
	background: var(--amp-lb-bg, #0b0b0b); color: var(--amp-lb-fg, #f3f2ef); overflow: hidden;
}
dialog.amp-lb::backdrop { background: var(--amp-lb-bg, #0b0b0b); }
.amp-lb__stage {
	position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: .9rem; padding: var(--amp-lb-pad, 64px) calc(var(--amp-lb-pad, 64px) + 16px) 20px; touch-action: pan-y;
}
.amp-lb__img { max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; transition: opacity .25s; }
.amp-lb__img.is-loading { opacity: .35; }
.amp-lb__cap { min-height: 2.5rem; max-width: 46rem; text-align: center; font-size: var(--amp-lb-cap-size, 12.5px); letter-spacing: .08em; line-height: 1.7; color: var(--amp-lb-cap, #cfcdc8); }
.amp-lb__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; }
.amp-lb__count { font-size: .68rem; letter-spacing: .22em; color: var(--amp-lb-cap, #cfcdc8); }
.amp-lb__tools { display: flex; gap: .25rem; }
.amp-lb__btn, .amp-lb__nav { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; color: var(--amp-lb-fg, #f3f2ef); background: none; border: 0; padding: 0; cursor: pointer; opacity: .85; }
.amp-lb__btn:hover, .amp-lb__nav:hover { opacity: 1; }
.amp-lb__nav { position: absolute; top: 50%; margin-top: -2rem; z-index: 3; height: 4rem; }
.amp-lb__prev { left: .75rem; }
.amp-lb__next { right: .75rem; }
dialog.amp-lb.no-counter .amp-lb__count, dialog.amp-lb.no-fs .amp-lb__fs, dialog.amp-lb.no-arrows .amp-lb__nav { display: none; }
dialog.amp-lb :focus-visible { outline: 2px solid var(--amp-lb-fg, #f3f2ef); outline-offset: 3px; }
@media (max-width: 767px) {
	.amp-lb__stage { padding: 56px 12px 16px; }
	.amp-lb__nav { display: none; }
}

/* ---------- Navigation ---------- */
.amp-nav { position: relative; }
.amp-nav__list { display: flex; justify-content: var(--amp-nav-justify, flex-end); gap: var(--amp-nav-gap, 3.2vw); list-style: none; margin: 0; padding: 0; }
.amp-nav__list li { margin: 0; padding: 0; }
.amp-nav__list a {
	font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; text-decoration: none;
	padding: .4rem 0; border-bottom: 1px solid transparent; color: #0b0b0b; transition: border-color .25s, color .25s;
}
.amp-nav-underline-yes .amp-nav__list a:hover, .amp-nav-underline-yes .amp-nav__list a[aria-current="page"] { border-bottom-color: currentColor; }
.amp-nav__toggle { display: none; position: relative; z-index: 4; width: 44px; height: 44px; background: none; border: 0; padding: 0; color: #0b0b0b; cursor: pointer; }
.amp-nav__bars, .amp-nav__bars::before { position: absolute; left: 25%; right: 25%; height: 1.5px; background: currentColor; transition: transform .3s; }
.amp-nav__bars { top: calc(50% - .15rem); }
.amp-nav__bars::before { content: ""; left: 0; right: 0; top: .5rem; }
.amp-nav.is-open .amp-nav__bars { transform: translateY(.25rem) rotate(45deg); }
.amp-nav.is-open .amp-nav__bars::before { transform: translateY(-.5rem) rotate(-90deg); }

@media (max-width: 767px) {
	.amp-nav-bp-mobile .amp-nav__toggle { display: block; }
	.amp-nav-bp-mobile .amp-nav__list { display: none; }
	.amp-nav-bp-mobile .amp-nav.is-open .amp-nav__list { display: flex; }
}
@media (max-width: 1024px) {
	.amp-nav-bp-tablet .amp-nav__toggle { display: block; }
	.amp-nav-bp-tablet .amp-nav__list { display: none; }
	.amp-nav-bp-tablet .amp-nav.is-open .amp-nav__list { display: flex; }
}
.amp-nav.is-open .amp-nav__list {
	position: fixed; inset: 0; z-index: 2; flex-direction: column; justify-content: flex-start; align-items: flex-start;
	gap: var(--amp-nav-panel-gap, 28px); padding: var(--amp-nav-panel-top, 96px) 5vw 2rem; background: var(--amp-nav-panel-bg, #faf9f7);
}
.amp-nav.is-open .amp-nav__toggle { color: var(--amp-nav-panel-fg, #0b0b0b); }
.amp-nav.is-open .amp-nav__list a { color: var(--amp-nav-panel-fg, #0b0b0b); font-size: var(--amp-nav-panel-size, 1.25rem); font-weight: 300; letter-spacing: .25em; }
html.amp-nav-open { overflow: hidden; }
