/* Galleri Bergström — main styles */

:root {
  --gb-bg: #f7f5f1;
  --gb-bg-soft: #efece6;
  --gb-surface: #ffffff;
  --gb-text: #1a1917;
  --gb-muted: #6b6760;
  --gb-line: #d9d4cb;
  --gb-accent: #2f4a3e;
  --gb-accent-soft: #3d5f50;
  --gb-danger: #8b3a3a;
  --gb-success: #2f4a3e;
  --gb-header-bg: #f7f5f1;
  --gb-header-text: #1a1917;
  --gb-footer-bg: #efece6;
  --gb-footer-text: #6b6760;
  --gb-footer-heading: #1a1917;
  --gb-font-display: "Cormorant Garamond", Georgia, serif;
  --gb-font-body: "Outfit", "Helvetica Neue", sans-serif;
  --gb-space: clamp(1.25rem, 3vw, 2.5rem);
  --gb-max: 72rem;
  --gb-header-h: 4.25rem;
  --gb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--gb-font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gb-text);
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      rgba(47, 74, 62, 0.06),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(26, 25, 23, 0.04),
      transparent 50%
    ),
    linear-gradient(180deg, #faf8f4 0%, var(--gb-bg) 40%, #f3f0ea 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gb-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color 0.2s var(--gb-ease),
    opacity 0.2s var(--gb-ease);
}

a:hover {
  color: var(--gb-accent-soft);
}

h1,
h2,
h3,
h4 {
  font-family: var(--gb-font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gb-text);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--gb-header-bg);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--gb-ease),
    background-color 0.3s var(--gb-ease);
  color: var(--gb-header-text);
}

/* Sit under WP admin bar when logged in */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--gb-line);
}

.site-header__inner {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: 0.75rem var(--gb-space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: auto;
}

.site-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--gb-header-text);
  line-height: 1.05;
}

.site-logo:hover {
  color: var(--gb-header-text);
  opacity: 0.75;
}

.site-logo__img {
  display: block;
  width: auto;
  height: auto;
  max-height: 6.25rem;
  max-width: min(20rem, 55vw);
  object-fit: contain;
}

.site-logo__mark {
  font-family: var(--gb-font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gb-header-text);
  opacity: 0.65;
}

.site-logo__name {
  font-family: var(--gb-font-display);
  font-size: 1.65rem;
  font-weight: 500;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  cursor: pointer;
  font-family: var(--gb-font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-header-text);
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle__icon {
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  box-shadow:
    0 5px 0 currentColor,
    0 -5px 0 currentColor;
}

.site-nav__list a {
  text-decoration: none;
  color: var(--gb-header-text);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
  color: var(--gb-accent);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--gb-header-bg);
    border-bottom: 1px solid var(--gb-line);
    padding: 0.5rem var(--gb-space) 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: gbFade 0.35s var(--gb-ease);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gb-line);
  }
}

/* Layout */

.site-main {
  min-height: 50vh;
}

.section {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gb-space);
}

.section--tight {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gb-muted);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.4em;
}

.section__lead {
  color: var(--gb-muted);
  margin: 0;
}

.section__lead.prose > *:last-child {
  margin-bottom: 0;
}

.section__lead p {
  color: var(--gb-muted);
}

.section__action {
  margin-top: 2rem;
}

/* Buttons */

.gb-btn,
.gb-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--gb-font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s var(--gb-ease),
    color 0.25s var(--gb-ease),
    border-color 0.25s var(--gb-ease),
    transform 0.25s var(--gb-ease);
}

.gb-btn {
  background: var(--gb-accent);
  color: #f8f6f2;
  border-color: var(--gb-accent);
}

.gb-btn:hover {
  background: var(--gb-accent-soft);
  border-color: var(--gb-accent-soft);
  color: #fff;
}

.gb-btn-outline {
  background: transparent;
  color: var(--gb-text);
  border-color: var(--gb-text);
}

.gb-btn-outline:hover {
  background: var(--gb-text);
  color: var(--gb-bg);
}

.gb-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero — full bleed */

.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: flex-end;
  color: #f8f6f2;
  overflow: hidden;
  isolation: isolate;
}

.hero--no-media {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90, 78, 62, 0.45), transparent 55%),
    linear-gradient(165deg, #2a2622 0%, #12110f 55%, #1a1815 100%);
  color: #f8f6f2;
}

.hero--no-media .hero__scrim {
  display: none;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--gb-ease);
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: gbHeroZoom 12s var(--gb-ease) forwards;
}

.hero__slide:not(.is-active) .hero__media img {
  animation: none;
  transform: scale(1);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(18, 17, 15, 0.15) 0%,
    rgba(18, 17, 15, 0.55) 55%,
    rgba(18, 17, 15, 0.78) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6rem) var(--gb-space) clamp(3rem, 7vw, 4.5rem);
  animation: gbFadeUp 0.9s var(--gb-ease) both;
}

.hero__brand {
  font-family: var(--gb-font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero__title {
  font-family: var(--gb-font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  max-width: 28rem;
  opacity: 0.95;
  transition: opacity 0.35s var(--gb-ease);
}

.hero__text {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  opacity: 0.85;
  font-weight: 300;
  transition: opacity 0.35s var(--gb-ease);
}

.hero__title.is-fading,
.hero__text.is-fading {
  opacity: 0;
}

.hero__dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(248, 246, 242, 0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  transition:
    background 0.25s var(--gb-ease),
    border-color 0.25s var(--gb-ease);
}

.hero__dot.is-active,
.hero__dot:hover {
  background: #f8f6f2;
  border-color: #f8f6f2;
}

.hero .gb-btn {
  background: #f8f6f2;
  color: var(--gb-text);
  border-color: #f8f6f2;
}

.hero .gb-btn:hover {
  background: transparent;
  color: #f8f6f2;
}

.hero .gb-btn-outline {
  border-color: rgba(248, 246, 242, 0.7);
  color: #f8f6f2;
}

.hero .gb-btn-outline:hover {
  background: #f8f6f2;
  color: var(--gb-text);
}

/* Grids */

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Work / artist cards — no heavy card chrome */

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.card-media {
  overflow: hidden;
  background: var(--gb-bg-soft);
  aspect-ratio: 4 / 5;
  margin-bottom: 0.9rem;
}

.card-media--landscape {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--gb-ease);
}

.card-link:hover .card-media img {
  transform: scale(1.04);
}

.card-title {
  font-family: var(--gb-font-display);
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--gb-muted);
  margin: 0;
}

/* Page headers */

.page-header {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gb-space) 1.5rem;
}

.page-header__title {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 0.35em;
}

.page-header__lead {
  color: var(--gb-muted);
  max-width: 36rem;
  margin: 0;
}

/* Single artwork */

.artwork {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gb-space) clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .artwork {
    grid-template-columns: 1fr;
  }
}

.artwork__gallery {
  display: grid;
  gap: 0.75rem;
}

.artwork__main {
  background: var(--gb-bg-soft);
}

.artwork__main img,
.artwork__thumbs img {
  width: 100%;
  height: auto;
}

.artwork__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
}

.artwork__meta-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--gb-line);
}

.artwork__meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gb-line);
  font-size: 0.95rem;
}

.artwork__meta-list span:first-child {
  color: var(--gb-muted);
}

.artwork__price {
  font-family: var(--gb-font-display);
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--gb-line);
  color: var(--gb-muted);
  margin-bottom: 1rem;
}

.badge--tillganglig {
  border-color: var(--gb-accent);
  color: var(--gb-accent);
}

.badge--salt,
.badge--reserverad {
  opacity: 0.85;
}

/* Artist single */

.artist {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gb-space);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 800px) {
  .artist {
    grid-template-columns: 1fr;
  }
}

.artist__portrait {
  background: var(--gb-bg-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.artist__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist__content .entry-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

/* Exhibition */

.exhibition-dates {
  color: var(--gb-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.prose {
  max-width: 40rem;
}

.prose > *:last-child {
  margin-bottom: 1em;
}

/* News */

.news-list {
  display: grid;
  gap: 2.5rem;
}

.news-item {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 1.75rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gb-line);
}

.news-item:hover {
  color: inherit;
}

.news-item__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gb-bg-soft);
}

.news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--gb-ease);
}

.news-item:hover .news-item__media img {
  transform: scale(1.04);
}

.news-item__date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-muted);
  margin-bottom: 0.4rem;
}

.news-item__title {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 700px) {
  .news-item {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact-layout {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: 0 var(--gb-space) clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info .entry-content {
  margin-bottom: 2.75rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.contact-info .entry-content + h2,
.contact-info h2:first-child {
  margin-top: 0;
}

.contact-info p {
  color: var(--gb-muted);
}

.contact-form-col__title {
  font-family: var(--gb-font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.artwork-actions {
  margin-top: 1.5rem;
}

.entry-back {
  margin-top: 2rem;
}

.gb-contact-form .gb-field {
  margin-bottom: 1.1rem;
}

.gb-contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-muted);
  margin-bottom: 0.4rem;
}

.gb-contact-form input,
.gb-contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--gb-line);
  background: var(--gb-surface);
  font-family: var(--gb-font-body);
  font-size: 1rem;
  color: var(--gb-text);
}

.gb-contact-form input:focus,
.gb-contact-form textarea:focus {
  outline: 2px solid var(--gb-accent);
  outline-offset: 1px;
}

.gb-form-success {
  padding: 0.9rem 1rem;
  background: rgba(47, 74, 62, 0.1);
  color: var(--gb-success);
  margin-bottom: 1.25rem;
}

.gb-form-error {
  padding: 0.9rem 1rem;
  background: rgba(139, 58, 58, 0.1);
  color: var(--gb-danger);
  margin-bottom: 1.25rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--gb-line);
  background-color: var(--gb-footer-bg);
  margin-top: clamp(2rem, 5vw, 4rem);
  color: var(--gb-footer-text);
}

.site-footer__inner {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gb-space) 2rem;
}

.site-footer__logo {
  font-family: var(--gb-font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--gb-footer-heading);
}

.site-footer__tagline {
  color: var(--gb-footer-text);
  margin: 0 0 2rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

.site-footer__heading {
  font-family: var(--gb-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--gb-footer-heading);
}

.site-footer__text {
  color: var(--gb-footer-text);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.site-footer__text a {
  color: var(--gb-footer-text);
  text-decoration: none;
}

.site-footer__text a:hover {
  color: var(--gb-accent);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gb-line);
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--gb-footer-text);
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.site-footer__admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gb-footer-text);
  opacity: 0.35;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.25s var(--gb-ease), color 0.25s var(--gb-ease);
}

.site-footer__admin:hover,
.site-footer__admin:focus-visible {
  opacity: 0.75;
  color: var(--gb-accent);
}

.site-footer__lock {
  display: block;
}
}

/* Entry content */

.entry-content {
  max-width: 40rem;
}

.entry-content img {
  margin: 1.5rem 0;
}

.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem var(--gb-space) 3rem;
}

.empty-state {
  color: var(--gb-muted);
  padding: 2rem 0;
}

/* Bilder page – same grid as konstverk cards, images only */

.photo-grid__item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  background: var(--gb-bg-soft);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  width: 100%;
  position: relative;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--gb-ease);
}

.photo-grid__item:hover img,
.photo-grid__item:focus-visible img {
  transform: scale(1.04);
}

.photo-grid__item:focus-visible {
  outline: 2px solid var(--gb-accent);
  outline-offset: 2px;
}

.photo-lightbox {
  border: 0;
  padding: 0;
  max-width: min(96vw, 72rem);
  max-height: 92vh;
  background: transparent;
  color: #f8f6f2;
}

.photo-lightbox::backdrop {
  background: rgba(12, 11, 10, 0.88);
}

.photo-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.photo-lightbox__close,
.photo-lightbox__nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f8f6f2;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  position: fixed;
  z-index: 2;
  opacity: 0.85;
}

.photo-lightbox__close:hover,
.photo-lightbox__nav:hover {
  opacity: 1;
}

.photo-lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2.25rem;
}

.photo-lightbox__nav--prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox__nav--next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .photo-lightbox__nav {
    font-size: 1.75rem;
  }
}

/* Motion */

@keyframes gbFadeUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gbHeroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

/* Visible by default; only hide when JS has opted in to reveal animation */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--gb-ease),
    transform 0.7s var(--gb-ease);
}

html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1rem);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__media img,
  .reveal,
  .card-media img,
  .news-item__media img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  html.js-reveal .reveal:not(.is-visible),
  .reveal {
    opacity: 1;
    transform: none;
  }
}
