.page-content {
  overflow: hidden;
}
.page-content:has(.artiste-sheet__long-description.modal-open) {
  position: inherit;
}
.artiste-sheet__container {
  background: var(--vitrine-gray-color);
  padding: 3rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.artiste-sheet__text-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: fit-content;
}

.artiste-sheet__heading-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.artiste-sheet__name {
  font-family: "Hanson Bold", sans-serif;
  font-size: 1.875rem;
  text-wrap: wrap;
  line-height: 1;
  /* text-align: center; */
}
.artiste-sheet__name > * {
  display: block;
}

.artiste-sheet__subtitle {
  font-family: "Avenir Black", sans-serif;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vitrine-blue-color);
  margin-top: 0;
  text-align: center;
}

.artiste-sheet__description-container {
  /* text-align: center; */
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  line-height: 1.25;
  overflow: hidden;
}
.artiste-sheet__container:not(
  :has(.artiste-sheet__long-description.modal-open)
) {
  position: relative;
}
.artiste-sheet__short-description,
.artiste-sheet__long-description {
  display: inline;
  font-family: "Avenir Black", sans-serif;
  background: var(--vitrine-black-color);
  color: var(--vitrine-white-color);
  padding: 0 0.4rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.artiste-sheet__long-description {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  height: fit-content;
  transition: transform 0.3s ease;
  transform-origin: top left;
  pointer-events: none;
  background: none;
}
.artiste-sheet__long-description.modal-open > p {
  margin-bottom: 3rem;
}
.artiste-sheet__long-description.modal-open {
  position: relative;
  text-align: left;
  opacity: 1;
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-top: 6rem;
  margin-bottom: 3rem;
  pointer-events: auto;
  /* white-space: pre-line; */
}
.artiste-sheet__long-description-dialog {
  transition: opacity 0.2s ease;
}
.artiste-sheet__long-description-dialog:has(
  .artiste-sheet__long-description.modal-open
) {
  display: flex;
  justify-content: center;
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  padding: 0 1.5rem;
}
.btn-readmore-container {
  background: var(--vitrine-black-color);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.btn-readmore {
  font-family: "Avenir Black";
  background: var(--vitrine-white-color);
  color: var(--vitrine-blue-color);
  padding: 2px 4px 0;
  min-height: auto;
  margin-left: auto;
  transform: translateX(-0.25rem);
}
.btn-readmore:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.artiste-sheet__main-content {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: flex-end;
  gap: 1rem;
  height: 100%;
  overflow: visible;
}

.artiste-sheet__image-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  width: 60%;
  height: 100%;
  /* max-height: 60dvh; */
}

.artiste-sheet__image {
  width: 100%;
  max-width: 221px;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

.artiste-sheet__work-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-end;
  width: 40%;
}

.artiste-sheet__work-carousel__navigation {
  font-family: "Wingdings 3", sans-serif;
  font-weight: 400;
  font-size: 1.75rem;
  display: flex;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  justify-content: space-around;
}

.artiste-sheet__work-carousel__prev:not(:disabled),
.artiste-sheet__work-carousel__next:not(:disabled) {
  color: var(--vitrine-blue-color);
}
.artiste-sheet__work-carousel__prev:not(:disabled):hover {
  animation: bounceLeft 0.6s ease-in-out;
}

.artiste-sheet__work-carousel__next:not(:disabled):hover {
  animation: bounceRight 0.6s ease-in-out;
}
@keyframes bounceLeft {
  0% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(-10px);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}
@keyframes bounceRight {
  0% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(10px);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}

.artiste-sheet__work-carousel__work-description {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.artiste-sheet__work-detail-item {
  background: var(--vitrine-blue-color);
  color: var(--vitrine-white-color);
  font-family: "Avenir Black", sans-serif;
  font-size: 0.625rem;
  line-height: 1.2;
  width: fit-content;
  padding-inline: 1rem;
  max-width: 200px;
  text-transform: capitalize;
  text-wrap: wrap;
}

.artiste-sheet__work-detail-item:first-child {
  padding-top: 0.6rem;
  overflow: hidden;
}
.artiste-sheet__work-detail-item:last-child {
  padding-bottom: 0.6rem;
}

.artiste-sheet__work-detail-item:not(:first-child) {
  padding-top: 0.3rem;
}
.artiste-sheet__work-detail-item:not(:last-child) {
  padding-bottom: 0.3rem;
}
.btn-close-description-dialog {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  left: auto;
  color: var(--vitrine-white-color);
  visibility: hidden;
  opacity: 0;
  font-size: 2rem;
  z-index: 1001;
  cursor: pointer;
  /* Subtle background for legibility */
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: unset;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.btn-close-description-dialog:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
/* ---------- Large Mobile --------- */
@media screen and (min-width: 480px) {
}

/* ------------- Tablet ---------- */
@media screen and (min-width: 768px) {
}

/* ------------ Small Laptop ---------- */
@media screen and (min-width: 1024px) {
  .artiste-sheet__main-content {
    overflow: hidden;
  }
  .artiste-sheet__image {
    width: 100%;
    height: 100%;
    max-width: 421px;
    max-height: 100%;
  }
  .artiste-sheet__container {
    flex-direction: row;
    align-items: normal;
    padding: 3rem 4rem;
    height: calc(95dvh - 64px);
  }
  .artiste-sheet__left {
    width: 45%;
  }
  .artiste-sheet__right {
    width: 55%;
    max-height: 780px;
  }
  .artiste-sheet__name {
    font-size: 2rem;
    text-align: left;
  }
  .artiste-sheet__subtitle {
    text-align: left;
    font-size: 0.75rem;
    margin-top: 0;
  }
  .artiste-sheet__description-container {
    max-width: 300px;
    text-align: right;
    margin-right: 0;
  }
  .btn-readmore-container {
    margin-right: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.25rem;
  }
  .artiste-sheet__image-container {
    width: 70%;
    overflow: hidden;
    /* max-height: 70dvh; */
  }
  .artiste-sheet__work-carousel {
    width: 30%;
  }
}

/* ------------ Laptop ---------- */
@media screen and (min-width: 1280px) {
  .artiste-sheet__image {
    max-height: 480px;
  }
  .artiste-sheet__description-container {
    max-width: 350px;
  }
}

/* ------------ Large Screen ---------- */
@media screen and (min-width: 1526px) {
  .artiste-sheet__description-container,
  .artiste-sheet__short-description,
  .artiste-sheet__long-description.modal-open {
    font-size: clamp(1rem, 0.9vw + 0.2rem, 1.25rem);
  }
  .artiste-sheet__work-detail-item {
    font-size: clamp(0.625rem, 0.6vw + 0.2rem, 0.875rem);
  }
}

/* ------------ Desktop ---------- */
@media screen and (min-width: 1920px) {
  .artiste-sheet__description-container {
    max-width: 400px;
  }
}
