* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans Thai", sans-serif;
  scroll-behavior: smooth;
}

.navigation-tab {
  margin: 7vw 0 0 3vw;
  width: fit-content;
}

.navigation-tab a,
.navigation-tab span {
  padding: 0 0.5vw;
  font-size: 18px;
  text-decoration: none;
  color: #000;
}

.navigation-tab a:hover {
  color: #a72c32;
  transition: 0.5s;
  font-weight: 600;
}

.layout {
  width: 100%;
  padding: 1vw 10vw;
}

.bg-head {
  width: 1200px;
  height: auto;
  padding: 2vw;
  border-radius: 15px;
  background-color: #fff;
}

.line-dark {
  width: 300px;
  height: 1px;
  display: block;
  background: #000;
  margin: -0.5vw 0 1vw 0;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 1vw 0;
  padding: 0 20%;
  text-align: center;
}

.banner img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.content-text {
  font-size: 16px;
  font-weight: 500;
  width: 1200px;
  height: auto;
  padding: 2vw;
  border-radius: 15px;
  background-color: #fff;
}

.content-text a {
  text-decoration: none;
  transition: 0.3s;
}

.content-text a:hover {
  color: #a72c32;
}

.content-text h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 1vw 0;
}

.content-text p {
  font-size: 18px;
}

.container-pic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.container-pic img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: 0.3s;
  border-radius: 5px;
}

.grid-item img {
  cursor: pointer;
}

.grid-item img:hover {
  transform: scale(1.03);
}

.container-layout {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.main-banner img {
  width: 100%;
  height: auto;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.reset-icon {
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.reset-icon:hover {
  color: #a72c32;
  transform: rotate(90deg);
}

.modal-content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-height: 70vh;
}

.modal-main-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.modal-main-image.zoomed {
  cursor: grab;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  padding: 20px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
  text-decoration: none;
  z-index: 2001;
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  color: #a72c32;
  transform: scale(1.1);
}

.thumbnail-bar {
  display: flex;
  gap: 10px;
  margin-top: 100px;
  padding: 10px;
  overflow-x: auto;
  max-width: 80%;
  scrollbar-width: none;
}

.demo {
  width: 80px;
  height: 60px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.demo.active {
  opacity: 1;
  border-color: #fff;
  transform: translateY(-5px);
}

.demo:hover {
  opacity: 1;
}

.modal-controls {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 2200;
}

.close,
.zoom-icon {
  color: white;
  font-size: 35px;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}

.zoom-icon {
  font-size: 24px;
}

.close:hover,
.zoom-icon:hover {
  color: #a72c32;
  transform: scale(1.1);
}

.modal-main-image {
  transition: transform 0.3s ease-out;
  position: relative;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
}

.modal-main-image.zoom-1 {
  transform: scale(1.8);
  cursor: zoom-in;
}

.modal-main-image.zoom-2 {
  transform: scale(3);
  cursor: zoom-out;
}

.modal-main-image.zoom-2:active {
  cursor: grabbing;
}
