html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, ul, li, form, fieldset, legend, label, table, header, footer, nav, section, figure {
  margin: 0;
  padding: 0;
}

/* Colors and spacing. dark.css (user_css) overrides the colors. */
:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --text: #1C1D20;
  --muted: #6B6E75;
  --accent: #2F6FEB;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.14);
  --radius: 12px;
  --gap: clamp(8px, 1.5vw, 20px);
  --page-width: 1440px;
  --page-pad: clamp(16px, 4vw, 48px);
}

body {
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga", "kern";
}

figure {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: var(--text);
}

img {
  width: auto;
  max-width: 100%;
  height: auto;
  border: 0;
}

p {
  margin: 0 0 12px;
}
ul {
  list-style: disc;
}
ul, ol {
  padding: 0;
  margin: 0 0 12px 25px;
}
li {
  margin: 0 0 12px 0;
}
h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: normal;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: clamp(32px, 7vw, 80px) var(--page-pad) clamp(16px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
}

h1 a {
  color: var(--text);
}
h1 a:hover {
  color: var(--text);
  opacity: 0.8;
}

strong {
  font-weight: 600;
}

figcaption {
  display: none;
}

.container {
  width: 100%;
}

.content {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-pad) clamp(24px, 5vw, 64px);
}

#menu {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

#menu ul {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

#menu li {
  margin: 0;
  list-style: none;
}

#menu a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
#menu a:hover {
  color: var(--text);
}

.breadcrumb {
  margin: 0 0 clamp(16px, 3vw, 32px);
  text-align: center;
}
.breadcrumb h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--text);
}

/* Albums and photos share one responsive grid. */
.album-list,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--gap);
}

/* Separate sub-albums from the photos that follow them. */
.album-list:has(.thumbnail) ~ .gallery {
  margin-top: clamp(32px, 5vw, 64px);
}

.thumbnail {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.thumbnail a {
  display: block;
  line-height: 0;
}

.thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms ease;
}
.thumbnail:hover img {
  transform: scale(1.04);
}

/* Album titles sit on a gradient over the cover image. */
.album_title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #FFF;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video {
  width: 100%;
  margin: 0 0 24px 0;
}
.video__container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  padding-top: 35px;
  height: 0;
  overflow: hidden;
}
.video__container iframe,
.video__container video {
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2% 0 15% 0;
}
.video-desc {
  width: 100%;
  max-width: 740px;
  margin: 12px auto;
}

/* "Download ZIP" link; only rendered when the zip_gallery plugin is enabled. */
#additionnal-infos {
  margin: 0 0 var(--gap);
  text-align: center;
}
#additionnal-infos a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}

#description {
  max-width: 740px;
  margin: clamp(24px, 4vw, 48px) auto 0;
  color: var(--muted);
}

footer {
  width: 100%;
  padding: 32px var(--page-pad) 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
  text-align: center;
}
footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--text);
}
footer span:not(:last-child):after {
  content: ' · ';
}

@media screen and (max-width: 500px) {
  .album-list,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .thumbnail {
    border-radius: 8px;
  }
  .album_title {
    padding: 28px 10px 8px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thumbnail,
  .thumbnail img {
    transition: none;
  }
  .thumbnail:hover,
  .thumbnail:hover img {
    transform: none;
  }
}

.pswp__dynamic-caption {
  color: #fff;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  transition: opacity 120ms linear !important; /* override default */
}

.pswp-caption-content {
  display: none;
}

.pswp__dynamic-caption a {
  color: #fff;
}

.pswp__dynamic-caption--faded {
  opacity: 0 !important;
}

.pswp__dynamic-caption--aside {
  width: auto;
  max-width: 300px;
  padding: 20px 15px 20px 20px;
  margin-top: 70px;
}

.pswp__dynamic-caption--below {
  width: auto;
  max-width: 700px;
  padding: 15px 0 0;
}

.pswp__dynamic-caption--on-hor-edge {
  padding-left: 15px;
  padding-right: 15px;
}

.pswp__dynamic-caption--mobile {
  width: 100%;
  background: rgba(0,0,0,0.5);
  padding: 10px 15px;

  right: 0;
  bottom: 0;

  /* override styles that were set via JS.
    as they interfere with size measurement */
  top: auto !important;
  left: 0 !important;
}
