.inner:hover .item-img img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.certificates .inner:hover {
  cursor: pointer;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Montserrat;
  color: #000000;
}

h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
}
h3 {
  font-size: 20px !important;
  font-weight: 550 !important;
}
h4 {
  font-size: 18px !important;
  font-weight: 500 !important;
}

article h2 {
  font-size: 16px !important;
}

/* Pagination hiding: force hidden items to remain hidden even if isotope
   manipulates inline display styles during layout. */
.portfolio .paginated-hidden {
  display: none !important;
}

article.post {
  /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
  padding-top: 10px;
}

article h1 {
  color: #000000;
}

article img {
  max-height: 500px;
}

.bq-portfolio-item__caption {
  text-align: center;
}

.bq-portfolio-item__caption h2 {
  margin-top: 8px;
  font-size: 14px;
}

.products-page .bq-portfolio-item__caption h2 {
  color: #333333;
}

.home-hero {
  background: #e9e9e9;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.home-hero__swiper {
  width: 100%;
  height: 700px;
}

@media (max-width: 1024px) {
  .home-hero__swiper {
    height: 600px;
  }
}

@media (max-width: 778px) {
  .home-hero__swiper {
    height: 520px;
  }
}

@media (max-width: 480px) {
  .home-hero__swiper {
    height: 480px;
  }
}

.home-hero__slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.home-hero__eyebrow {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600;
}

.home-hero__title {
  margin: 10px 0 0;
  font-size: 36px;
  font-weight: 700;
  color: inherit;
}

@media (max-width: 778px) {
  .home-hero__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .home-hero__title {
    font-size: 24px;
  }
}

.home-hero__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background: #d54b00;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 3px;
  text-decoration: none;
}

.home-hero__cta:hover,
.home-hero__cta:focus {
  background: #0a0a0a;
  color: #ffffff;
  text-decoration: none;
}

.home-hero__swiper .swiper-button-prev,
.home-hero__swiper .swiper-button-next {
  color: rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.home-hero__swiper:hover .swiper-button-prev,
.home-hero__swiper:hover .swiper-button-next {
  opacity: 1;
}

.home-hero__swiper .swiper-button-prev:hover,
.home-hero__swiper .swiper-button-next:hover,
.home-hero__swiper .swiper-button-prev:focus-visible,
.home-hero__swiper .swiper-button-next:focus-visible {
  color: rgba(255, 255, 255, 0.8);
}

.home-hero__swiper .swiper-button-prev::after,
.home-hero__swiper .swiper-button-next::after {
  font-size: 20px;
}

.home-hero__swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.home-hero__swiper .swiper-pagination-bullet-active {
  background: #ffffff;
}

#SR7_1_1 sr7-bg,
#SR7_1_1 sr7-bg.sr7-layer {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

#SR7_1_1 sr7-bg img,
#SR7_1_1 sr7-bg picture,
#SR7_1_1 sr7-bg video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Gallery styles */
.gallery-container {
  display: flex;
  /* Activates the flex layout */
  flex-wrap: wrap;
  /* Allows images to drop to the next row */
  gap: 5px;
  /* Sets an equal gap between all items (vertical and horizontal) */
  justify-content: flex-start;
  /* Aligns images to the left */
  padding-top: 5px;
}

.gallery-item-1 {
  /* Set your preferred width here */
  width: calc(100% - 5px);
  /* Example: 3 items per row, subtracting the gap */
  min-width: 250px;
  /* Prevents images from getting too tiny on mobile */
  flex-grow: 0;
  /* Optional: allows images to fill the empty space in a row */

  padding: 0px;
  text-align: center;
}

.gallery-item-2 {
  /* Set your preferred width here */
  width: calc(50% - 5px);
  /* Example: 3 items per row, subtracting the gap */
  min-width: 250px;
  /* Prevents images from getting too tiny on mobile */
  flex-grow: 0;
  /* Optional: allows images to fill the empty space in a row */

  padding: 0px;
  text-align: center;
}

.gallery-item-3 {
  /* Set your preferred width here */
  width: calc(33.33% - 5px);
  /* Example: 3 items per row, subtracting the gap */
  min-width: 250px;
  /* Prevents images from getting too tiny on mobile */
  flex-grow: 0;
  /* Optional: allows images to fill the empty space in a row */

  padding: 0px;
  text-align: center;
}

.gallery-item-4 {
  /* Set your preferred width here */
  width: calc(25% - 5px);
  /* Example: 3 items per row, subtracting the gap */
  min-width: 250px;
  /* Prevents images from getting too tiny on mobile */
  flex-grow: 0;
  /* Optional: allows images to fill the empty space in a row */

  padding: 0px;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .table-responsive table {
    min-width: 600px;
  }

  .gallery-item-1,
  .gallery-item-2,
  .gallery-item-3,
  .gallery-item-4 {
    width: 100%;
    flex-basis: 100%;
  }
}

.second-ul-container {
  margin-left: 10px;
}
