html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: block;
  width: 100%;
}

h1 {
  font-family: var(--text-font-family);
  font-size: var(--fs-3xl);
  line-height: var(--lh-3xl);
  font-weight: bold;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--text-font-family);
  font-size: var(--fs-2xl);
  line-height: var(--lh-2xl);
  font-weight: bold;
  letter-spacing: -0.025em;
}

h3 {
  font-family: var(--text-font-family);
  font-size: var(--fs-xl);
  line-height: var(--lh-xl);
  font-weight: bold;
  letter-spacing: -0.02em;
}

h4 {
  font-family: var(--text-font-family);
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: bold;
  letter-spacing: 0em;
}

h5 {
  font-family: var(--text-font-family);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  font-weight: bold;
  letter-spacing: 0em;
  padding: 0;
}

h6 {
  font-family: var(--text-font-family);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: bold;
  letter-spacing: 0em;
}

p {
  font-family: var(--text-font-family);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
}

.serif {
  font-family: "Libre Baskerville";
}

.san-serif {
  font-family: var(--text-font-family);
}

.large-text {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
}

.small-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

.bold {
  font-weight: bold;
}

.white-text {
  color: rgba(255, 255, 255, 0.7);
}

.title {
  font-family: "Libre Baskerville";
  font-size: var(--fs-2xl);
  line-height: var(--lh-xl);
}

.sub-title {
  font-family: "Libre Baskerville";
  font-size: var(--fs-xl);
  line-height: var(--lh-xl);
}

/* Containers*/

.main-container {
  margin: calc(var(--s-md) * 4) auto 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-items: center;
  padding: var(--s-lg) var(--s-md);
  box-sizing: border-box;
  gap: var(--s-lg);
  text-align: left;
  color: hsla(0, 0%, 0%, 0.8);
}

.home-container {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-items: center;
  box-sizing: border-box;
  gap: var(--s-lg);
  text-align: left;
  color: hsla(0, 0%, 0%, 0.8);
}

.bleed-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-items: center;
  box-sizing: border-box;
  gap: var(--s-sm);
  text-align: left;
  color: hsla(0, 0%, 0%, 0.8);
}

.page-header-container {
  padding: var(--s-sm) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-lg);
}


/* Images & Behaviors */

.image-container-wrapper {
  display: flex;
  flex: 0 0 1;
  flex-direction: column;
  gap: var(--s-sm);
}

.image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 2;
  border-radius: var(--s-md);
  overflow: hidden;
}

.main-image-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.main-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.image-caption {
  font-family: var(--text-font-family);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  padding: 0 var(--s-sm);
}

.image-caption-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: hsla(0, 0%, 0%, 0.5);
  font-family: var(--text-font-family);
  font-size: var(--fs-sm);
  line-height: var(--lh-md);
  text-align: center;
  padding: var(--s-sm) var(--s-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.image-container:hover .image-caption-overlay {
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

/* Objective-Solution Section */

.obj-sol-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s-sm);
  gap: var(--s-xl);
}

.obj-sol-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  text-align: left;
}

/* Detail Section */

.detail-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-md);
}

.detail-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  text-align: left;
  padding: var(--s-sm);
}

.detail-divider {
  width: 100%;
  height: 1px;
  border-top: 1px dotted hsla(0, 0%, 0%, 0.4);
}

/* Work Page */

.thumbnail-container-wrapper {
  display: flex;
  flex: 0 0 100%;
  position: relative;
  flex: 0 0 calc((100% / 2) - (var(--s-sm) / 2));
}

.thumbnail-container {
  display: flex;
  aspect-ratio: 3 / 2;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  overflow: hidden;
}

.thumbnail-overlay {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  color: white;
  padding: var(--s-xl);
  font-family: var(--text-font-family);
  font-size: var(--fs-lg);
  line-height: var(--lh-md);
}

.thumbnail-container:hover .thumbnail-overlay {
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

.thumbnail-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}





/* Back-to-top Button */

#topBtn {
  position: fixed;
  bottom: var(--s-lg);
  right: var(--s-lg);
  z-index: 5;
  height: 48px;
  width: 48px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}

#topBtn.show {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Modal */

.lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: hsla(0, 0%, 0%, 0.8);
  overflow: auto;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}
.lightbox.hidden {
  opacity: 0;
  visibility: hidden;
}
.lightbox .close {
  position: absolute;
  right: var(--s-lg);
  top: var(--s-lg);
  cursor: pointer;
}
.lightbox-content {
  display: flex;
  margin: 56px;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: var(--s-sm);
}

.image-zoom-overlay {
  position: absolute;
  bottom: var(--s-md);
  right: var(--s-md);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-zoom-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.lightbox-open .image-container:hover .image-zoom-overlay {
  opacity: 0;
  pointer-events: none;
}

.click {
  cursor: pointer;
}

/* Slideshow */

#slideshow-container {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.active {
  opacity: 1;
}

