/* Albums follow the Gallery's quiet image-first treatment. */
body.thorn3-site .thorn3-gallery-landing .thorn3-albums-section {
  padding: clamp(2.5rem, 5vw, 5rem) 0 !important;
  border-top: 1px solid #dedee0;
  background: #fff;
}
body.thorn3-site .thorn3-gallery-landing .thorn3-albums-section .et_pb_row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.thorn3-site .thorn3-gallery-landing .thorn3-albums-intro {
  margin: 0 0 clamp(1rem, 2.5vw, 2rem) !important;
  padding: 0 clamp(1rem, 3.2vw, 4.5rem);
}
body.thorn3-site .thorn3-gallery-landing .thorn3-albums-intro h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.15;
}
body.thorn3-site .thorn3-gallery-landing .thorn3-albums-module { margin: 0 !important; }
.thorn3-albums-grid {
  display: grid;
  grid-template-columns: repeat(var(--thorn3-album-columns, 3), minmax(0, 1fr));
  align-items: start;
  gap: clamp(.875rem, 1.4vw, 1.5rem);
  padding: 0 clamp(1rem, 3.2vw, 4.5rem);
  box-sizing: border-box;
  width: 100%;
}
.thorn3-album-card { min-width: 0; color: #1d1d1f; }
.thorn3-album-cover {
  position: relative;
  display: grid;
  grid-template-areas: 'cover';
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #ececee;
  color: #fff !important;
  text-decoration: none !important;
}
.thorn3-album-ratio-1-1 .thorn3-album-cover { aspect-ratio: 1; }
.thorn3-album-ratio-3-2 .thorn3-album-cover { aspect-ratio: 3 / 2; }
.thorn3-album-ratio-16-9 .thorn3-album-cover { aspect-ratio: 16 / 9; }
.thorn3-album-cover::after {
  content: '';
  grid-area: cover;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / var(--thorn3-cover-shade)) 0%, rgb(0 0 0 / 20%) 55%, transparent 100%);
}
.thorn3-album-position-center .thorn3-album-cover::after { background: rgb(0 0 0 / var(--thorn3-cover-shade)); }
.thorn3-album-position-top .thorn3-album-cover::after { background: linear-gradient(to bottom, rgb(0 0 0 / var(--thorn3-cover-shade)), transparent 78%); }
.thorn3-album-cover-image,
.thorn3-album-empty-cover {
  grid-area: cover;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: var(--thorn3-cover-x, 50%) var(--thorn3-cover-y, 50%);
  display: block;
}
.thorn3-album-empty-cover { display: grid; place-items: center; background: #252528; color: #bbb; font-size: 2rem; letter-spacing: .2em; }
.thorn3-album-cover-copy {
  grid-area: cover;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  gap: .35rem;
  padding: clamp(1rem, 2vw, 2rem);
  text-shadow: 0 1px 6px rgb(0 0 0 / 45%);
}
.thorn3-album-position-center .thorn3-album-cover-copy { justify-content: center; text-align: center; }
.thorn3-album-position-top .thorn3-album-cover-copy { justify-content: flex-start; }
.thorn3-album-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.thorn3-album-cover-title { font-size: clamp(1.4rem, 2.25vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.thorn3-album-cover:is(:hover, :focus-visible) .thorn3-album-cover-title { text-decoration: underline; text-decoration-color: #ffcf32; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.thorn3-album-cover:focus-visible,
.thorn3-album-media-item a:focus-visible,
.thorn3-album-lightbox-close:focus-visible { outline: 3px solid #ffcf32; outline-offset: 3px; }
.thorn3-album-caption { border-top: 1px solid #dedee0; margin-top: .75rem; padding-top: .65rem; font-size: .875rem; line-height: 1.5; }
.thorn3-album-caption > span { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.thorn3-album-caption p { margin: .3rem 0 0 !important; color: #5d5d62; }
.thorn3-album-detail { margin-block: clamp(2rem, 4vw, 4rem); }
.thorn3-album-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.thorn3-album-media-item { margin: 0; min-width: 0; }
.thorn3-album-media-item img,
.thorn3-album-media-item video { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #f3f3f4; }
.thorn3-album-media-item figcaption { padding: .65rem 0; border-bottom: 1px solid #dedee0; color: #5d5d62; font-size: .875rem; }
.thorn3-album-lightbox { box-sizing: border-box; border: 0; background: #171719; color: #fff; padding: 3.5rem 1rem 1rem; max-width: min(96vw, 1500px); max-height: 96vh; }
.thorn3-album-lightbox::backdrop { background: rgb(0 0 0 / 88%); }
.thorn3-album-lightbox img { display: block; max-width: 100%; max-height: calc(96vh - 5rem); width: auto; height: auto; margin: auto; }
.thorn3-album-lightbox-close { position: absolute; top: .5rem; right: .65rem; border: 0; background: transparent; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: .3rem .6rem; }
@media (max-width: 980px) { .thorn3-albums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .thorn3-albums-grid, .thorn3-album-media-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .thorn3-album-cover *, .thorn3-album-cover::after { transition: none !important; animation: none !important; } }
.single-thorn3_album .thorn3-project-cover { display: none; }
