.main-content {
  display: flex;
  flex-direction: column;
}

.page-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.pg-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.pg-title h2 {
  color: var(--secondary-color2);
  font-weight: 500 !important;
  font-size: 1.5rem;
}
.pg-title h1 {
  color: #4191db !important;
  font-weight: 600 !important;
  font-size: 2rem;
}

form.form {
  display: flex;
  flex-direction: column;
  width: 70%;
  gap: 0.5rem;
  margin: 1rem auto;
}
form.form .input-fields,
form.form .checkboxes {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

form.form .checkboxes {
  justify-content: center;
  gap: 1rem;
}

.bib {
  min-width: 350px;
}

form.form .input-fields .icon.is-right {
  color: var(--primary-color2);
  border-radius: 4px;
}

form.form .input-fields .file-cta {
  background-color: var(--primary-color2);
  color: #fff;
}

form.form .input-fields .file label,
form.form .input-fields .file .file-name {
  width: 100%;
}

form.form .input-fields .file-cta:hover {
  background-color: #4191db;
  color: #fff;
}

form.form .input-fields .file-cta .file-icon {
  margin-right: 0;
}
.form-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  grid-gap: 1.5rem;
  justify-items: center;
  margin: 0;
  padding: 0;
  place-content: center;
}

.image-gallery .image-frame {
  padding: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  background-color: #fff;
  color: #d9d9d9;
  width: 220px;
  aspect-ratio: 1/1;
  cursor: pointer;
  position: relative;
}

/* .image-gallery .image-frame a {
    width: 100%;
    height: 100%;
    display: inline-block;
} */

.image-gallery .image-frame img {
  max-width: unset;
  transition: opacity 0.25s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 0.5rem;
  width: 100%;
  height: 100%;
}

.image-gallery .image-frame img:hover {
  opacity: 0.7;
}

.view-image-modal .image-area {
  position: relative;
}

.view-image-modal .image-area .prev,
.view-image-modal .image-area .next {
  position: absolute;
  top: 50%;
  font-size: 28px;
  width: 2.5rem;
  height: 2.5rem;

  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: #fff;

  cursor: pointer;
}

.view-image-modal .image-area .prev {
  left: 0;
}

.view-image-modal .image-area .next {
  right: 0;
}

#pagination-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem;
  z-index: 5;
  position: relative;
}

.view-image-modal .heading {
  display: flex;
  flex-direction: column;
  gap: 8px;

  color: #363636;
  flex-grow: 1;
  flex-shrink: 0;
  line-height: 1;
}

#no-data {
  display: flex;
  justify-content: center;
}
.title_img {
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 600 !important;
}
.heading {
  flex-direction: row !important;
  align-items: center;
  margin-bottom: 0px !important;
}
#close {
  background-color: transparent;
  border: 0px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-cont::after {
  content: "Tải hình ảnh";
  margin-left: 0.5rem;
}

.delete::after,
.delete::before,
.modal-close::after,
.modal-close::before {
  background-color: transparent !important;
}

#img-loading {
  position: absolute !important;
  top: 50%;
  left: 50%;
}

/* css for loading */
.loader-photo {
  width: 64px;
  height: 64px;
  position: relative;
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 5.6),
      rgba(255, 255, 255, 0.5)
    ),
    #25974a;
  border-radius: 4px;
  overflow: hidden;
}

.loader-photo:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  transform: rotate(45deg) translate(30%, 40%);
  background: #0076bd;
  box-shadow: 32px -34px 0 5px #f8dc05;
  animation: slide 2s infinite ease-in-out alternate;
}

.loader-photo:after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0076bd;
  transform: rotate(0deg);
  transform-origin: 35px 145px;
  animation: rotate 2s infinite ease-in-out;
}

@keyframes slide {
  0%,
  100% {
    bottom: -35px;
  }

  25%,
  75% {
    bottom: -2px;
  }

  20%,
  80% {
    bottom: 2px;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(-15deg);
  }

  25%,
  75% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(25deg);
  }
}

/* backdrop */
#view-image-modal.modal:not(dialog:not(.modal-open)),
#view-image-modal.modal::backdrop {
  background-color: #000000d1;
  animation: modal-pop 0.2s ease-out;
}

/* css for btn download */
#btn-download {
  background-color: rgb(0, 114, 188);
  border-color: transparent;
  color: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  padding-bottom: calc(0.5em - 1px);
  padding-left: 1em;
  padding-right: 1em;
  padding-top: calc(0.5em - 1px);
  text-align: center;
  white-space: nowrap;
}

/* modal */
@media (max-width: 420px) {
  #view-image-modal .modal-box {
    padding: 1rem;
  }
  #view-image-modal .modal-card-head {
    padding: 0rem !important;
  }
}
/* modal */
@media (max-width: 767px) {
  .main-content {
    margin-top: 112px !important;
  }
  .logo-header {
    height: 80px !important;
  }
}
@media (max-width: 405px) {
  .main-content {
    margin-top: 83px !important;
  }
}
.container-gallery {
  container-type: inline-size;
  container-name: image-gallery;
}

@container image-gallery (max-width: 342px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fit, 280px);
  }
}

.image-gallery {
  container-type: inline-size;
  container-name: image-frame;
}
@container image-frame (max-width: 342px) {
  .image-gallery .image-frame {
    width: 280px;
  }
}
@media (max-width: 320px) {
  .image-gallery .image-frame {
    width: 200px;
  }
  .image-gallery {
    grid-template-columns: repeat(auto-fit, 200px);
  }
}
@media (max-width: 235px) {
  .main-content {
    margin-top: 65px !important;
  }
}
