#beds-showcase {
  margin-top: 75px;
  width: min(100% - 20px, 75vw);
  margin-inline: auto;
  background-color: white !important;
}

#collection_container {
  margin-top: 100px;
  margin-bottom: 175px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}

#collection_container div .options {
  display: flex;
  gap: 10px;
  bottom: 15px;
  right: 15px;
  z-index: 99;
}

#collection_container div .options .option,
#modal .options_modal .option_modal {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background-size: cover;
  background-position: center;
  background-clip: content-box;
  padding: 3px;
  border: 4px solid white;
}

#collection_container div .options .option:hover,
.options_modal div:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.contemporary,
.classic,
.ethno,
.design {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 200px;
}

.contemporary .div-text,
.classic .div-text,
.ethno .div-text,
.design .div-text {
  order: -1;
}

#collection_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal_infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}

@media screen and (min-width: 1024px) {
  .div-text {
    min-width: 350px;
    text-align: center;
  }

  #beds-showcase {
    width: 100vw;
  }

  #modal .thumb {
    width: 125px !important;
    height: 125px !important;
  }

  #collection_container {
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 27.5vh;
    grid-auto-flow: dense;
    gap: 1.8rem;
  }

  .contemporary img {
    object-position: center left;
  }

  .contemporary div:nth-of-type(1) {
    grid-column: 3/ 5;
    grid-row: 2/4;
  }

  .contemporary div:nth-of-type(2) {
    grid-column: 1 / 4;
    grid-row: 1/2;
  }

  .contemporary div:nth-of-type(3) {
    grid-column: 1 / 3;
    grid-row: 2/4;
  }

  .contemporary div:nth-of-type(4),
  .contemporary div:nth-of-type(6),
  .contemporary div:nth-of-type(8) {
    display: none;
  }

  .contemporary div:nth-of-type(7) {
    grid-row: 4;
    grid-column: 1 / 4;
  }

  .classic .div-text {
    grid-row: 2 / span 2;
    grid-column: 2 / span 2;
  }

  .classic div:nth-of-type(3) {
    grid-column: 2 / span 2;
  }

  .classic div:nth-of-type(7) {
    grid-column: 2 / span 2;
  }

  .ethno div:nth-of-type(2) {
    grid-column: 1 / 3;
    grid-row: 1/2;
  }

  .ethno div:nth-of-type(6) {
    display: none;
  }

  .ethno .div-text {
    grid-row: 2 / span 2;
    grid-column: 1 / span 2;
  }

  .design .div-text {
    grid-row: 2 / span 2;
    grid-column: 2 / 3;
  }

  .design div:nth-of-type(1) {
    grid-column: 1 / 3;
    grid-row: 1/2;
  }

  .design div:nth-of-type(2) {
    grid-column: 1 / 3;
    grid-row: 1/2;
  }

  .design div:nth-of-type(4) {
    grid-column: 2/ 4;
  }

  .design div:nth-of-type(11) {
    display: none;
  }

  .div-text .contenu {
    /* border: 1px #a39161 solid; */
    padding: 15px !important;
    min-height: auto;
    position: relative;
  }

  .div-text .contenu h2 {
    font-size: 34px;
    line-height: 40px;
  }

  a.display_products {
    margin-top: 15px !important;
  }
}

#collection_container div .options .option {
  width: 60px;
  height: 60px;
}

.div-text .contenu {
  padding: 20px !important;
}

#modal #showcase_img {
  max-width: 80%;
  width: 100%;

}

@media screen and (min-width: 1536px) {
  #modal .thumb {
    width: 200px !important;
    height: 200px !important;
  }

  #beds-showcase {
    width: 90vw;
    max-width: 1980px;
  }

  .div-text {
    min-width: 400px;
  }

  #collection_container {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 330px;
    gap: 2.5rem;
  }

  .contemporary div:nth-of-type(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .contemporary div:nth-of-type(2) {
    grid-column: 3 / 5;
  }

  .contemporary div:nth-of-type(2) img {
    object-position: center left;
  }

  .contemporary div:nth-of-type(3) {
    grid-column: 3 / span 1;
  }

/*   .contemporary div:nth-of-type(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
    display: block;
  } */

  .contemporary div:nth-of-type(5) {
    grid-column: 4 / 5;
  }

  .contemporary div:nth-of-type(7) {
    grid-column: 2 / 4;
  }

  .contemporary div:nth-of-type(8) img {
    object-position: center center;
  }

  .contemporary .div-text {
    grid-row: 2 / span 2;
  }

  .contemporary div:nth-of-type(4),
  .contemporary div:nth-of-type(6),
  .contemporary div:nth-of-type(8) {
    display: block;
  }

  .classic div:nth-of-type(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .classic .div-text {
    grid-column: 3/4;
    grid-row: 1 / span 2;
  }

  .classic div:nth-of-type(7) {
    grid-column: auto;
  }

  .classic div:nth-of-type(7) img {
    object-position: left 20% top 50%;
  }

  .ethno .div-text {
    grid-column: 4 /4;
    grid-row: 1 / span 3;
  }

  .ethno div:nth-of-type(2) {
    grid-column: 1 / span 2;
    grid-row: 2 / span 2;
  }

  .ethno div:nth-of-type(3) {
    grid-column: 1 / span 2;
  }


.ethno div:nth-of-type(1) {
  grid-row: 1 / span 2;
}

  .ethno div:nth-of-type(6) {
    grid-row: 1 / span 2;
    display: block;
  }

  .design div:nth-of-type(11) {
    display: block;
  }

  /* Design */
  .design div:nth-of-type(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .design .div-text {
    grid-row: 2 / span 2;
    grid-column: 3/4;
  }

  .design div:nth-of-type(2) {
    grid-column: 2 / span 2;
    grid-row: 1 / 2;
  }

  .design div:nth-of-type(5) {
    grid-column: 1 / span 2;
    grid-row: 2 / span 2;
  }

  #collection_container div .options {
    position: absolute;
    display: flex;
    gap: 10px;
    bottom: 20px;
    right: 20px;
    z-index: 99;
  }

  .div-text .contenu {
    padding: 35px !important;
  }
}

.div-text {
  display: grid;
  place-content: center;
  padding: 10px;
  border: 2px #a39161 solid;
}

.div-text .contenu {
  /* border: 1px #a39161 solid; */
  padding: 35px;
  min-height: auto;
  position: relative;
  max-width: 350px;
}

.div-text span.header {
  font-family: "TimesNewRomanItalic", sans-serif;
  font-size: 17px;
  line-height: 21px;
  display: block;
  color: #a39161;
  margin-bottom: 15px;
}

.div-text .intro {
  font-family: "TimesNewRomanItalic", sans-serif;
  font-size: 18px;
  line-height: 26px;
  display: block;
  color: #6d6d6d;
}

.div-text .intro a.btn {
  background: transparent;
  border: 1px #a39161 solid;
  color: #a39161;
  padding: 12px 36px;
  font-weight: 500;
  margin: 32px 0 0;
  font-family: "Raleway", sans-serif;
}

.div-text .intro a.btn:hover {
  background: #a39161;
  border: 1px #a39161 solid;
  color: #fff;
}

.showcase_img {
  position: relative;
}

.img_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.img_container img {
  transform: scale(1);
  transition: all 3s ease-in-out;
}

.img_container:hover img {
  transform: scale(1.2);
}

.img_container::after {
  content: attr(data-key);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    rgba(41, 122, 34, 0) 0%,
    rgba(163, 145, 97, 0.6) 90%
  );
  background-size: cover;
  background-position: center;

  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.3555, 1);
  font-size: 45px;
  color: white;
  display: grid;
  place-content: center;
}

.img_container::before {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.3555, 1);
  z-index: 9;
  font-family: Shelley;
  color: rgba(255, 255, 255, 0.3);
  font-size: 150px;
  display: grid;
  place-content: center;
}

.img_container:hover::after,
.img_container:hover::before {
  opacity: 1;
  cursor: pointer;
}

#modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  overflow: hidden;
}

#modal .overlay {
  background: rgba(0, 0, 0, 0.95);
  position: absolute;
  inset: 0;
}

#modal .showroom {
  background-color: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  z-index: 9999;
}

#modal #showcase_img {
  position: relative;
}

#modal #showcase_img #showcase_container {
  width: 100%;
  height: 100%;
  max-height: 80dvh;
  padding-bottom: 56.25%;
  position: relative;
}

#modal #showcase_img #showcase_container .options_modal {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modal #showcase_img #bed_title {
  margin-top: 25px;
  color: white;
  z-index: 9999;
  position: relative;
  color: #fff;
}

#modal #showcase_img #bed_title::before {
  content: attr(data-letter);
  font-family: Shelley;
  font-size: 80px;
  position: absolute;
  top: 0;
  opacity: 0.3;
  color: #a39161;
}

#modal .controls {
  position: static;
  right: 0;
  display: flex;
  bottom: 25px;
  color: white;
  gap: 20px;
  font-size: 30px;
  z-index: 9999;
}

#modal #modal_thumbs {
  gap: 10px;
  max-height: 80vh;
  overflow: scroll;
  display: grid;
  grid-template-columns: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  z-index: 9999;
}

#modal #modal_thumbs::-webkit-scrollbar {
  display: none;
}

#modal #showcase_container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom left;
}

#modal .thumb {
  width: 75px;
  height: 75px;
  background-position: center;
  background-size: cover;
  background-position: center;
  filter: contrast(0.93) grayscale(0.84);
  transform: none;
  transform-origin: 50% 50% 0px;
}

#modal .thumb:hover {
  cursor: pointer;
  filter: none !important;
  transform: scale(1.03);
}

#modal #next,
#modal #previous,
#modal #close,
#modal #fullsreen {
  cursor: pointer;
}

#collection_container div .options {
  position: absolute;
  display: flex;
  gap: 10px;
  bottom: 15px;
  right: 15px;
}

@media screen and (min-width: 2560px) {
  #modal .showroom,
  #beds-showcase {
    width: min(80%, 2560px);
    margin-inline: auto;
  }
}

@media screen and (max-width: 1023px) {
  .img_container {
    height: 400px;
  }

  #collection_container {
    margin-bottom: 125px;
  }

  .contemporary div:nth-of-type(4),
  .contemporary div:nth-child(n + 7),
  .classic div:nth-child(n + 6),
  .design div:nth-child(n + 5),
  .ethno div:nth-child(n + 6) {
    display: none;
  }

  #modal #showcase_img {
    max-width: 60%;
    width: 100%;
}

  .design div:nth-of-type(6) {
    display: grid;
  }
}

@media screen and (max-width: 600px) {
  .img_container {
    height: 250px;
  }

  #beds-showcase {
    width: min(100% - 20px, 601px);
    margin-inline: auto;
  }

  #modal #modal_thumbs {
    max-width: 90%;
    overflow-x: scroll;
    overflow-y: hidden;
    grid-auto-flow: column;
  }

  #modal .showroom {
    flex-direction: column;
  }

  #modal #showcase_img {
    width: 90%;
    max-height: 40vh;
    aspect-ratio: 16/9;
  }

  #modal h2 {
    font-size: 22px;
    line-height: 40px;
  }

  #modal #showcase_img #bed_title {
    margin-top: 6px;
  }

  #modal .controls {
    position: absolute;
    right: 0;
    top: -50px;
  }

  #collection_container div .options {
    gap: 5px;
  }

  #collection_container div .options .option {
    width: 50px;
    height: 50px;
  }

  .options_modal {
    display: none !important;
  }

  #modal #showcase_img #bed_title::before {
    font-size: 35px;
  }
}
