.hit-row {
  background-color: #f3f3f3;
}
.hiw-section {
  padding: 60px 0;
  margin: 0 auto;
}

.hiw-container {
  width: 100%;
}

.hiw-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.hiw-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 48px;
  max-width: 600px;
}

.hiw-content-wrapper {
  display: flex;
  gap: 60px;
  /*align-items: flex-start;*/
}

/* Desktop Tabs */
.hiw-tabs-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4rem 2rem;
  background-color: #fff;
  border-radius: 4px;
}

.hiw-tab-button {
  background: #fbfbfb;
  border: none;
  border-left: 3px solid #e0e0e0;
  padding: 24px 20px 24px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  align-items: center;
}

.hiw-tab-button:hover {
  border-left-color: #999;
}

.hiw-tab-button.hiw-tab-active {
  border-left-color: #333;
  background-color: #F5F5F5;
}

.hiw-tab-number {
  font-size: 38px;
  font-weight: 300;
  color: #e0e0e0;
  line-height: 1;
  transition: color 0.3s ease;
  min-width: 80px;
  text-align: center;
}

.hiw-tab-button.hiw-tab-active .hiw-tab-number {
  color: #b2b2b2;
}

.hiw-tab-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.hiw-tab-content p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}
.hiw-tab-content h3, .hiw-tab-content p {
  color: #afafaf;
}

.hiw-tab-active .hiw-tab-content h3, .hiw-tab-active .hiw-tab-content p {
  color: #1a1a1a;
}
/* Image Panel */
.hiw-image-panel {
  flex: 1;
  position: relative;
  min-height: 817px;
  background: #f7f7f8;
  /*border-radius: 12px;*/
  overflow: hidden;
  /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
  /*border: 1px solid #bfbfbf;*/
}

.hiw-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /*padding: 40px;*/
}

.hiw-image-container.hiw-image-active {
  opacity: 1;
  z-index: 1;
}

.hiw-image-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Mobile Gallery */
.hiw-mobile-gallery {
  display: none;
}

.hiw-image-container.img1 {
  border: 1px solid #bfbfbf;
  border-radius: 4px;
}
.hiw-image-container.img2 {
  background-color: #8c775d;
  background-image: url(/pl/chastudioimg/tab2-bg.png);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  border-radius: 4px;
}
.hiw-image-container.img2 img {
/*  padding-left: 6rem;
  padding-top: 4rem;*/
}  

.hiw-image-container.img3 {
  background-color: #8c775d;
  background-image: url(/pl/chastudioimg/tab3-bg.png);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  border-radius: 4px;
}
.hiw-image-container.img3 img {
/*  padding-left: 6rem;
  padding-top: 4rem;*/
}  
.hiw-image-container.img4 {
  background-color: #8c775d;
  background-image: url(/pl/chastudioimg/tab4-bg.png);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  border-radius: 4px;
  border: 1px solid #bfbfbf;
}
.hiw-image-container.img4 img {
/*  padding-left: 6rem;
  padding-top: 4rem;*/
}  


@media (max-width: 1280px) {
  .hiw-image-container.img1 img {
    max-width: 125%;
  }
  .hiw-image-container.img2 img {
    max-width: 125%;
  }
  .hiw-image-container.img3 img {
    max-width: 125%;
  }
}
/* Mobile Styles */
@media (max-width: 1023px) {

  #html-body [data-pb-style=U4XDKOX], #html-body [data-pb-style=R7VL9PW], .hit-row {
    background-color: #fff;
  }  
  .hiw-section {
    padding: 40px 0;
  }
  .hiw-slide-image.img2 {
     background-color: #8c775d;
     background-image: url(/pl/chastudioimg/tab2-bg.png);
     background-repeat: no-repeat;
     background-position: top right;
     background-size: cover;
     position: relative;
  }
  .hiw-slide-image.img3{
     background-color: #8c775d;
     background-image: url(/pl/chastudioimg/tab3-bg.png);
     background-repeat: no-repeat;
     background-position: top right;
     background-size: cover;
     position: relative;
  }
  .hiw-slide-image.img4 {
     background-color: #8c775d;
     background-image: url(/pl/chastudioimg/tab4-bg.png);
     background-repeat: no-repeat;
     background-position: center;
     background-size: cover;
     position: relative;
  }
  .hiw-slide-image.img1 img {
    position: absolute;
    /*top: 3rem;*/
    /*max-width: 52%;*/
  }
  .hiw-slide-image.img2 img, .hiw-slide-image.img3 img, .hiw-slide-image.img4 img {
    position: absolute;
    top: 3rem;

  }
  .hiw-title {
    font-size: 1.75rem;
    padding: 0 20px;
  }

  .hiw-subtitle {
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding: 0 20px;
  }

  .hiw-content-wrapper {
    flex-direction: column;
    gap: 0;
  }

  /* Hide desktop tabs and image panel */
  .hiw-tabs-nav,
  .hiw-image-panel {
    display: none;
  }

  /* Show mobile gallery */
  .hiw-mobile-gallery {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fff;
  }

  .hiw-gallery-track {
    display: flex;
    transition: transform 0.4s ease;
    touch-action: pan-y;
    will-change: transform;
    width: 100%; /* Added from updates */
  }

  .hiw-gallery-slide {
    width: 100%; /* Added from updates */
    min-width: 100%;
    max-width: 100%; /* Added from updates */
    padding: 10px 10px 0px;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: #f3f3f3;
    z-index: 1;
  }
  .hiw-mobile-gallery .header-content p {
    width: 100%;
  }
  .hiw-slide-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: #c4c3c3;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
  }

  .hiw-gallery-slide h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
  }

  .hiw-gallery-slide p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hiw-slide-image {
    width: 100%;
    max-width: 100%; /* Added from updates */
    /*background: #f8f7f8;*/
    /*border-radius: 12px;*/
    overflow: hidden;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
    /*padding: 20px;*/
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hiw-slide-image img {
    /*width: 100%;*/
    max-width: 100%; /* Added from updates */
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
  }

  /* Dot Navigation */
  .hiw-dot-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
  }

  .hiw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .hiw-dot.hiw-dot-active {
/*    width: 12px;
    height: 12px;
    background-color: #333;*/
    width: 24px;
    border-radius: 4px;
    background-color: #1c1917;
  }
}
@media (max-width: 768px) {
   .hiw-slide-image img {
     /*max-width: 60% !important;*/
    }
}
@media (max-width: 600px) {
   .hiw-slide-image img {
     max-width: 136% !important;
    }
}
/* Tablet adjustments */
/*@media (min-width: 769px) and (max-width: 1024px) {
  .hiw-content-wrapper {
    gap: 40px;
  }

  .hiw-tab-number {
    font-size: 2.5rem;
    min-width: 60px;
  }

  .hiw-tab-button {
    padding: 20px 0 20px 24px;
  }
}*/
