* {
  box-sizing: border-box;
}

:root {
  --img-carousel-width: 640px;
}

.hidden {
  display: none;
}

.img-carousel {
  margin: 24px auto; /* center horizontally */
  width: max-content;
}

.img-carousel-frame {
  position: relative;
  height: 480px;
  width: var(--img-carousel-width);
  background-color: rgb(22, 22, 22);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.img-carousel-container {
  height: 100%;
  width: max-content;
  display: flex;
  align-items: center;
}

.img-carousel-btn-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.img-prev-next-btns {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-grow: 1;
  align-items: center;
  font-size: 24px;
  font-weight: bold;

  button {
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    border: 0;
    padding: 8px 12px;
    opacity: 50%;
    background-color: rgb(189, 186, 179);
    transition: opacity 0.4s;
  }

  button:hover {
    opacity: 85%;
  }
}

.img-nav-dots {
  position: absolute;
  display: flex;
  gap: 8px;
  bottom: 8px;
  right: 8px;
}

.img-nav-dot {
  cursor: pointer;
  background-color: rgb(255, 243, 228);
  border: 2px solid rgb(46, 46, 46);
  opacity: 65%;
  transition: opacity 0.2s;
}

.img-nav-dot[data-active="true"] {
  cursor: default;
  background-color: rgb(255, 183, 27);
  opacity: 90%;
}

.img-nav-dot:not([data-active="true"]):hover {
  opacity: 90%;
}

img {
  max-width: var(--img-carousel-width);
  max-height: 100%;
}
