/* assets/css/details_item.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #697367;
  color: #fff;
  height: 100vh;
}

* {
  box-sizing: border-box;
}

.wrapper {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 100px auto 0;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: start;
}

aside {
  width: 70%;
}

main {
  width: 30%;
  margin-bottom: 20px;
}

.bewerken {
  display: flex;
  align-items: center;
}

.bewerken img {
  width: 2rem;
  height: 2rem;
}

.bewerken:hover {
  cursor: pointer;
  scale: 1.1;
}

.table,
.personal {
  width: 100%;
  max-width: 1125px;
  padding: 10px;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px 5px #464d45;
  background: #464d457e;
}

.head {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #464d45;
  margin: -10px -10px 10px;
  padding: 10px;
}

.title {
  text-align: center;
}

.head h2,
.head h4 {
  font-family: "Cabin", sans-serif;
  margin-right: 10px;
}

.detail-group {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  grid-gap: 20px;
  padding-bottom: 10px;
}

.detail-group + .detail-group {
  padding-top: 10px;
  border-top: 1px solid #697367;
}

.detail-group:last-of-type {
padding-bottom: 0;
}

@media (max-width: 1000px) {
}

@media (max-width: 600px) {
}

#image-gallery {
  align-self: start;
  margin: 20px 20px 0 0;
}

.image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  background: #565e55;
  border-radius: 5px;
}

#current-image {
  max-width: 99%;
  max-height: 99%;
  object-fit: contain;
}

#image-thumbs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.imagePopUp {
  display: flex;
  justify-content: center;
  align-items: center;
}

#prev-btn,
#next-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 24px;
  color: #000;
  cursor: pointer;
}

#prev-btn {
  left: 0;
}

#next-btn {
  right: 0;
}

#image-thumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 20px;
  padding: 0;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 10px;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.1
  );
  z-index: 1;
  overflow: hidden;
}

.image {
  position: relative;
}

.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 1000;
}

#prev-book {
  left: 0;
}

#next-book {
  right: 0;
}

.image-container img,
.image-gallery img {
  max-height: 100px;
  max-width: 200px;
  width: auto;
  margin-bottom: 10px;
}

#image-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-popup img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 5px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#image-popup .corner {
  position: absolute;
  display: flex;
  align-items: center;
  top: 5px;
  right: 10px;
  font-size: 20px;
  color: #fff;
}

.image-counter {
  align-self: self-end;
}

.close-button {
  background-color: transparent;
  padding: 0;
  margin-left: 10px;
  border: none;
  cursor: pointer;
}

.image-container {
  position: relative;
  display: inline-block; /* Toegevoegd */
}

.remove-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #fa0000;
  cursor: pointer;
}

.image-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prev-button,
.next-button {
  color: white;
  padding: 5px 10px;
  border-radius: 50%;
}

.prev-button {
  margin-left: 10px;
}

.next-button {
  margin-right: 10px;
}

.nav-button {
  cursor: pointer;
}

.nav-button:hover {
  font-size: 32px;
}
