/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}

/* Kay Chan — portfolio
   The site's own styles. At build time PhotoSwipe's styles are prepended and the
   result is published as the single file assets/css/style.css. Breakpoints: 932px (tablet) and 540px (phone). */

/* ---------- Fonts (SIL Open Font License, see assets/fonts/) ---------- */
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #e2b2f9;          /* lilac page background */
  --header: #ffcd75;      /* marigold header and mobile menu */
  --ink: #111;
  --nav: #282828;
  --logo: #fffaff;
  --social: #7e22c9;
  --social-alt: #6950a3;
  --social-hover: #022a55;
  --violet: #aa00ff;
  --field: #f8d7ef;
  --field-text: #ffe3b3;
  --font: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: #000;
}

h1, h2, p, ul { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
a svg { transition: fill .2s ease; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 160px;
  padding: 0 4% 10px;
  background: var(--header);
}

.site-nav { width: 43%; }

.site-nav a {
  display: inline-block;
  vertical-align: middle;
  margin-right: 20px;
  font-size: 19px;
  font-weight: 700;
  line-height: 19px;
  text-transform: uppercase;
  color: var(--nav);
}
.site-nav a:last-child { margin-right: 0; }

.logo {
  flex: 1;
  text-align: center;
  font-family: var(--font-logo);
  font-size: 35px;
  font-weight: 700;
  line-height: 35px;
  text-transform: uppercase;
  color: var(--logo);
}
.logo a:hover { color: var(--nav); }

/* Hamburger (tablet and phone only) */
.menu-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 30px 5%;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 4px;
  background: #fff;
}
.menu-toggle span:last-of-type { margin-bottom: 0; }

/* Full-screen mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  padding: 50px 5% 0;
  background: var(--header);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s ease .2s, opacity .2s ease;
}
.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s, opacity .2s ease;
}
.menu-open { overflow: hidden; }

.mobile-menu nav { width: 100%; margin: auto; padding-bottom: 80px; }
.mobile-menu nav a {
  display: block;
  padding-bottom: 30px;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--nav);
}

.menu-close {
  position: fixed;
  top: 30px;
  right: calc(5% - 10px);
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-close::before, .menu-close::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 19px;
  width: 2px;
  height: 20px;
  background: #fff;
  transform: rotate(45deg);
}
.menu-close::after { transform: rotate(-45deg); }

/* ---------- Page layout ---------- */
.page {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.page-header {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 30px;
}
.page-header--spaced { padding-bottom: 26px; }

.page-title {
  padding-bottom: 40px;
  font-size: 30px;
  font-weight: 400;
  line-height: 34px;
  text-align: center;
  color: var(--ink);
}

/* ---------- About ---------- */
.intro {
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro__photo { flex: 1; min-width: 1px; padding-bottom: 20px; }
.intro__photo img { width: 100%; }
.intro__text { flex: 3; min-width: 1px; }
.intro__text p {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 60px;
  font-size: 20px;
  line-height: 26px;
}

/* ---------- Social icons ---------- */
.social {
  list-style: none;
  font-size: 0;
  text-align: center;
}
.social li {
  display: inline-block;
  padding: 39px 38px 17px 8px;
}
.social li:first-child { padding-left: 0; }
.social li:last-child { padding-right: 0; }
.social a { display: block; }
.social svg {
  width: 38px;
  height: 38px;
  vertical-align: middle;
  fill: var(--social);
}
.social a:hover svg { fill: var(--social-hover); opacity: .8; }

.social--compact li { padding: 40px 27px 15px 0; }
.social--compact svg { width: 30px; height: 30px; fill: var(--social-alt); }

/* ---------- Films ---------- */
.film {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.film + .gallery { margin-top: 0; }
.gallery + .film { padding-top: 21px; }

.film__title {
  padding: 10px 0 20px;
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
}
.film__title a { text-decoration: underline; }
.film__title a:hover { filter: brightness(70%); }

.film__caption {
  padding: 4px 0 13px;
  font-size: 16px;
  line-height: 22px;
}

/* ---------- Image gallery (rows keep their layout at every width) ---------- */
.gallery { padding-bottom: 20px; }

.gallery__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* --ratio = image width / height, so every image in a row ends up the same height */
.gallery__item {
  flex: var(--ratio) 1 0;
  min-width: 0;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; }
.gallery__spacer { flex: var(--ratio) 1 0; }   /* keeps a short last row from stretching */

/* ---------- Contact ---------- */
.contact {
  max-width: 600px;
  margin: 1px auto 40px;
  text-align: center;
}

.contact label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  color: #fff;
}

.contact input,
.contact textarea {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  padding: 0 10px;
  border: 1px solid var(--violet);
  border-radius: 3px;
  outline: none;
  background: var(--field);
  color: var(--field-text);
  font: 400 16px var(--font);
  text-align: center;
}
.contact input { height: 42px; line-height: 42px; }
.contact textarea { height: 132px; padding-top: 13px; padding-bottom: 13px; resize: vertical; }
.contact input:focus,
.contact textarea:focus { border-color: #7700b3; box-shadow: 0 0 0 1px #7700b3; }

.contact button {
  height: 40px;
  padding: 0 25px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--violet);
  font-size: 18px;
  line-height: 40px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.contact button:hover,
.contact button:focus-visible { background: rgba(170, 0, 255, .47); color: var(--field-text); }

.contact-sent {
  max-width: 600px;
  margin: 1px auto 40px;
  font-size: 20px;
  text-align: center;
  color: #fff;
}
.contact-sent a { text-decoration: underline; }

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .1);
}
.back-to-top svg { width: 24px; height: 24px; fill: #000; opacity: .3; }
.back-to-top:hover { background: rgba(0, 0, 0, .2); }
.back-to-top:hover svg { opacity: .5; }

/* ---------- Lightbox (PhotoSwipe, styles above): white backdrop, dark controls ---------- */
.pswp {
  --pswp-bg: #fff;
  --pswp-placeholder-bg: transparent;
  --pswp-icon-color: #282828;
  --pswp-icon-color-secondary: #fff;
  --pswp-icon-stroke-color: #fff;
  --pswp-icon-stroke-width: 2px;
  --pswp-error-text-color: #282828;
}
.intro__photo { cursor: zoom-in; }

/* ---------- Tablet ---------- */
@media (max-width: 932px) {
  .site-header { padding: 0 5% 8px; }
  .site-nav { display: none; }
  .logo { padding: 0 39px; font-size: 33px; line-height: 33px; }
  .menu-toggle { display: block; }
  .mobile-menu { display: flex; }
  .menu-close { top: 30px; }

  .page { width: 100%; padding-bottom: 84px; }
  .page-header { padding: 18px 5% 0; }
  .page-header--spaced { padding-bottom: 15px; }
  .page-title { padding-bottom: 28px; font-size: 22px; line-height: 25px; }

  .intro__photo { padding-bottom: 14px; }
  .intro__text p { padding: 14px 5% 34px; font-size: 17px; line-height: 22px; }

  .social { padding: 0 5%; }
  .social li { padding: 31px 30px 14px 6px; }
  .social--compact li { padding: 32px 22px 12px 0; }

  .film { padding: 0 5%; }
  .film__title { padding: 7px 0 11px; font-size: 18px; line-height: 23px; }
  .film__caption { padding: 2px 0 9px; font-size: 14px; line-height: 20px; }

  .contact { margin: 2px auto 20px; padding: 0 5%; }
  .contact label { margin-bottom: 8px; font-size: 13px; }
  .contact input, .contact textarea { margin-bottom: 18px; font-size: 13px; }
  .contact button { height: 38px; font-size: 14px; line-height: 38px; }

  .back-to-top { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 540px) {
  .site-header { padding-bottom: 6px; }
  .logo { font-size: 23px; line-height: 23px; }
  .menu-close { top: 20px; }

  .page { padding-bottom: 80px; }
  .page-header { padding-top: 16px; }
  .page-header--spaced { padding-bottom: 14px; }
  .page-title { padding-bottom: 26px; font-size: 19px; line-height: 22px; }

  .intro { display: block; }
  .intro__photo { padding-bottom: 13px; }
  .intro__text p { padding: 13px 5% 31px; font-size: 14px; line-height: 18px; }

  .social li { padding: 25px 25px 11px 5px; }
  .social svg { width: 25px; height: 25px; }
  .social--compact li { padding: 26px 18px 10px 0; }
  .social--compact svg { width: 30px; height: 30px; }

  .film__title { padding: 13px 0 16px; font-size: 15px; line-height: 19px; }
  .film__caption { padding: 7px 0 13px; font-size: 14px; line-height: 20px; }

  .contact { margin: 2px auto 18px; }
  .contact label { margin-bottom: 7px; font-size: 12px; }
  .contact input, .contact textarea { margin-bottom: 16px; font-size: 12px; }
  .contact input { height: 35px; line-height: 35px; }
  .contact button { height: 35px; line-height: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
