:root {
  /* Colors */
  --white: #fff;
  --black: #000;
  --grey-400: #7d7d7d;
  --grey-200: #d8d8d8;
  --grey-150: #e5e5e5;
  --grey-100: #f3f3f3;

  /* Typography - Font Family */
  --font-family: "Libre Baskerville", sans-serif;

  /* Text Presets */
  /* Weight Size/Line-Height Family */
  --tp-1: 700 20rem/1.15 var(--font-family);
  --tp-2: 700 5.6rem/1.15 var(--font-family);
  --tp-3: 700 1.8rem/1.25 var(--font-family);
  --tp-4: 400 1.5rem/1.35 var(--font-family);
  --tp-5: 400 1.3rem/1.25 var(--font-family);
  --tp-6: 700 1.2rem/1.25 var(--font-family);
  --tp-6-letter-spacing: 0.25rem;
  --tp-7: 700 1rem/1.2 var(--font-family);
  --tp-7-letter-spacing: 0.2rem;

  --tp-1-mobile: 700 10rem/1 var(--font-family);
  --tp-2-mobile: 700 2.4rem/1.25 var(--font-family);
  --tp-3-mobile: 700 1.4rem/2 var(--font-family);
  --tp-4-mobile: 400 1rem/1.2 var(--font-family);
  --tp-5-mobile: 400 0.9rem/1.25 var(--font-family);
  --tp-5-mobile-letter-spacing: 0.2rem;

  /* Spacing */
  --spacing-1200: 9.6rem;
  --spacing-1000: 8rem;
  --spacing-800: 6.4rem;
  --spacing-700: 5.6rem;
  --spacing-500: 4rem;
  --spacing-400: 3.2rem;
  --spacing-300: 2.4rem;
  --spacing-200: 1.6rem;
  --spacing-100: 0.8rem;

  /* Z-Index Layers */
  --z-back: -1;
  --z-normal: 1;
  --z-floating: 5;
  --z-tooltip: 10;
  --z-fixed: 50;
  --z-modal: 999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */
  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- COMMON STYLES --- */
body {
  background-color: var(--white);
  min-height: 100vh;
  padding: var(--spacing-300) var(--spacing-500);
}

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

.header-container {
  border-bottom: 0.1rem solid var(--grey-150);
  padding-bottom: var(--spacing-300);
  margin-bottom: var(--spacing-300);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-img {
  width: 100%;
  max-width: 17rem;
}

.header-button {
  color: var(--grey-400);
  font: var(--tp-6);
  letter-spacing: var(--tp-6-letter-spacing);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header-button:hover {
  color: var(--black);
}
/* --- COMMON STYLES --- */

/* --- GALLERY PAGE --- */
/* --- MAIN PART --- */
.gallery-container {
  width: 100%;
  max-width: 136rem;
  margin: 0 auto;

  display: flex;
  gap: var(--spacing-500);
  align-items: flex-start;
}

.gallery-column {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4rem;
  flex: 1;
}

.gallery-item {
  width: 100%;
  background-color: var(--white);
  position: relative;
  cursor: pointer;
}

.gallery-img {
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-img {
  opacity: 0.5;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-400);

  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);

  display: flex;
  flex-direction: column;
  gap: var(--spacing-100);
}

.gallery-title {
  color: var(--white);
  font: var(--tp-2-mobile);
}

.gallery-name {
  color: var(--white);
  font: var(--tp-5);
  opacity: 75%;
}
/* --- MAIN PART --- */
/* --- GALLERY PAGE --- */

/* --- SLIDESHOW PAGE --- */
/* --- MAIN PART --- */
.slideshow-container {
  width: 100%;
  max-width: 136rem;
  margin: 0 auto;
  padding: var(--spacing-300) 0;

  display: flex;
  gap: 3.6rem;
}

.first-container {
  width: 100%;
  max-width: 85rem;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
}

.slideshow-image-container {
  position: relative;
  width: 100%;

  grid-column: 1 / 7;
  grid-row: 1;
}

.slideshow-img {
  width: 100%;
  height: 100%;
  z-index: var(--z-normal);
}

.slideshow-view-img-button {
  position: absolute;
  bottom: var(--spacing-200);
  left: var(--spacing-200);

  background-color: var(--black);
  color: var(--white);
  font: var(--tp-7);
  letter-spacing: var(--tp-7-letter-spacing);
  text-transform: uppercase;
  padding: var(--spacing-200);

  display: flex;
  align-items: center;
  gap: var(--spacing-200);
  z-index: var(--z-floating);
  transition: background-color 0.3s;
}

.slideshow-view-img-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.slideshow-view-img-icon {
  width: 1.2rem;
}

.slideshow-title-container {
  width: 100%;
  max-width: 44.5rem;
  background-color: var(--white);
  padding: 0 0 var(--spacing-800) var(--spacing-800);
  margin-top: -0.1rem;
  align-self: start;
  z-index: 2;

  grid-column: 6 / -1;
  grid-row: 1;
}

.slideshow-title {
  color: var(--black);
  font: var(--tp-2);
  max-width: 8ch;
  margin-bottom: var(--spacing-300);
}

.slideshow-name {
  color: var(--grey-400);
  font: var(--tp-4);
}

.slideshow-painter-img {
  margin-left: var(--spacing-300);
  margin-top: -6.4rem;
  grid-column: 7 / -1;
  grid-row: 2;
}

.second-container {
  width: 100%;
  max-width: 47.6rem;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slideshow-bg-year {
  color: var(--grey-100);
  font: var(--tp-1);
  margin-top: -1.6rem;

  position: absolute;
  top: 0;
  right: 0;
  z-index: var(--z-back);
}

.slideshow-info-container {
  width: 100%;
  max-width: 35rem;
}

.slideshow-info-text {
  color: var(--grey-400);
  font: var(--tp-3-mobile);
  margin-bottom: var(--spacing-500);
}

.slideshow-info-link {
  color: var(--grey-400);
  font: var(--tp-5-mobile);
  letter-spacing: var(--tp-5-mobile-letter-spacing);
  text-transform: uppercase;
  transition: color 0.3s;
}

.slideshow-info-link:hover {
  color: var(--black);
}
/* --- MAIN PART --- */

/* --- FOOTER PART --- */
.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: var(--z-fixed);
}

.footer-progress-container {
  width: 100%;
  height: 0.2rem;
  background-color: var(--grey-150);
}

.footer-progress-fill {
  width: 0;
  height: 100%;
  background-color: var(--black);
  transition: width 0.3s ease;
}

.footer-content-container {
  width: 100%;
  max-width: 136rem;
  padding: var(--spacing-200) var(--spacing-500);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-info-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-100);
}

.footer-title {
  color: var(--black);
  font: var(--tp-3);
}

.footer-name {
  color: var(--black);
  font: var(--tp-5);
  opacity: 0.75;
}

.footer-control-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-500);
}

.footer-prev-button,
.footer-next-button {
  transition: opacity 0.3s;
}

.footer-prev-button:not(:disabled):hover,
.footer-next-button:not(:disabled):hover {
  opacity: 0.5;
}

.footer-prev-button:disabled,
.footer-next-button:disabled {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}

.footer-prev-img,
.footer-next-img {
  width: 2.5rem;
  height: auto;
}
/* --- FOOTER PART --- */

/* --- LIGHTBOX OVERLAY --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: var(--z-modal);

  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-400);
}

.lightbox-close-button {
  color: var(--white);
  font: var(--tp-3-mobile);
  text-transform: uppercase;
  align-self: end;
}

.lightbox-img {
  width: 100%;
  max-width: 91.7rem;
}
/* --- LIGHTBOX OVERLAY --- */
/* --- SLIDESHOW PAGE --- */

/* --- EXTRA CLASSES --- */
.hidden {
  display: none;
}

.scroll-lock {
  overflow: hidden;
}
/* --- EXTRA CLASSES --- */

/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */
/* Tablet = 768px = 48em */
/* Mobile = 384px = 24em */

/******************************************/
/* BELOW 768px (Tablet) */
/******************************************/
@media (max-width: 48em) {
  /* --- COMMON STYLES --- */
  body {
    padding: var(--spacing-400) 0;
  }

  .header-container {
    padding: 0rem var(--spacing-500) var(--spacing-300) var(--spacing-500);
  }

  .header-logo-img {
    width: 11.3rem;
  }
  /* --- COMMON STYLES --- */

  /* --- GALLERY PAGE --- */
  /* --- MAIN PART --- */
  .gallery-container {
    padding: 0rem var(--spacing-700);
  }
  /* --- MAIN PART --- */
  /* --- GALLERY PAGE --- */

  /* --- SLIDESHOW PAGE --- */
  /* --- MAIN PART --- */
  .slideshow-container {
    max-width: 76.8rem;
    padding: var(--spacing-200) var(--spacing-500) var(--spacing-700) var(--spacing-500);

    flex-direction: column;
    gap: var(--spacing-800);
  }

  .first-container {
    max-width: 68.8rem;
  }

  .slideshow-image-container {
    grid-column: 1 / 9;
  }

  .slideshow-title-container {
    grid-column: 5 / -1;
  }

  .slideshow-painter-img {
    margin-left: var(--spacing-300);
    margin-top: 23.6rem;
    grid-column: 9 / -1;
    grid-row: 1;
  }

  .second-container {
    max-width: 76.8rem;
    align-items: center;
    padding: 4.8rem 0 var(--spacing-800) 0;
  }

  .slideshow-bg-year {
    margin-top: -2.4rem;
    top: var(--spacing-200);
    left: 0;
  }

  .slideshow-info-container {
    width: 100%;
    max-width: 45.7rem;
  }

  .slideshow-info-text {
    color: var(--grey-400);
    font: var(--tp-3-mobile);
  }
  /* --- MAIN PART --- */
  /* --- FOOTER PART --- */
  .footer-content-container {
    width: 100%;
    max-width: 76.8rem;
  }
  /* --- FOOTER PART --- */
  /* --- LIGHTBOX OVERLAY --- */
  .lightbox-img {
    width: 100%;
    max-width: 67rem;
  }
  /* --- LIGHTBOX OVERLAY --- */
  /* --- SLIDESHOW PAGE --- */
}

/******************************************/
/* BELOW 384px (Mobile) */
/******************************************/
@media (max-width: 24em) {
  /* --- COMMON STYLES --- */
  body {
    padding: 0;
  }

  .header-container {
    padding: var(--spacing-300);
    margin: 0;
  }
  /* --- COMMON STYLES --- */

  /* --- GALLERY PAGE --- */
  /* --- MAIN PART --- */
  .gallery-container {
    padding: var(--spacing-300) var(--spacing-400);
    gap: 2.4rem;
  }

  .gallery-column {
    width: 100%;
    gap: 2.4rem;
  }
  /* --- MAIN PART --- */
  /* --- GALLERY PAGE --- */

  /* --- SLIDESHOW PAGE --- */
  /* --- MAIN PART --- */
  .slideshow-container {
    max-width: 76.8rem;
    padding: var(--spacing-300) var(--spacing-300) var(--spacing-1000) var(--spacing-300);
    gap: 0;
  }

  .first-container {
    max-width: 32.7rem;
    display: flex;
    flex-direction: column;
  }

  .slideshow-image-container {
    grid-column: auto;
    grid-column: 1 / -1;
  }

  .slideshow-view-img-button {
    top: var(--spacing-200);
    left: var(--spacing-200);
    bottom: auto;
  }

  .slideshow-title-container {
    width: 100%;
    max-width: 28.2rem;
    padding: var(--spacing-300);
    margin-top: -4rem;

    grid-column: auto;
    align-self: auto;
  }

  .slideshow-title {
    font: var(--tp-2-mobile);
    max-width: none;
    margin-bottom: var(--spacing-100);
  }

  .slideshow-painter-img {
    width: var(--spacing-800);
    margin-left: var(--spacing-300);
    margin-top: 0;

    grid-column: auto;
    grid-row: auto;
  }

  .second-container {
    max-width: 32.7rem;
  }

  .slideshow-bg-year {
    font: var(--tp-1-mobile);
    margin-top: 0;
    top: 0;
    right: 0;
    left: auto;
  }

  .slideshow-info-container {
    max-width: 32.7rem;
  }
  /* --- MAIN PART --- */

  /* --- FOOTER PART --- */
  .footer-content-container {
    max-width: 32.7rem;
    padding: var(--spacing-200) 0;
  }

  .footer-info-container {
    gap: 0;
  }

  .footer-title {
    font: var(--tp-3-mobile);
  }

  .footer-name {
    font: var(--tp-4-mobile);
  }

  .footer-control-container {
    gap: var(--spacing-300);
  }

  .footer-prev-img,
  .footer-next-img {
    width: 1.5rem;
  }
  /* --- FOOTER PART --- */
  /* --- LIGHTBOX OVERLAY --- */
  .lightbox-container {
    gap: var(--spacing-300);
  }
  .lightbox-img {
    width: 100%;
    max-width: 32.7rem;
  }
  /* --- LIGHTBOX OVERLAY --- */
  /* --- SLIDESHOW PAGE --- */
}
