/* Remove the spacer as we're now using positioning in the template */

section.tab_gallery {
  margin: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  position: relative;
  z-index: 1;
  padding: 20px 53px 53px;
}

.long-headline {
  width: 400px;
  height: 46px;
  font-family: var(--font-family-default);
  font-style: normal;
  font-weight: 400;
  font-size: 38px;
  line-height: 46px;
  letter-spacing: -0.123249px;
  color: #000000;
  margin-bottom: 30px;
}

/* Tab navigation adjustments */
.gf-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.gf-tabs__list {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.gf-tabs__list::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.gf-tabs__tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 16px;
  transition: all 0.3s ease;
}

.gf-tabs__tab--active {
  border-bottom: 2px solid #000;
  font-weight: 600;
}

/* Remove panel padding */
.gf-tabs__panels {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 !important;
  /* Force remove all padding */
  padding-block: 0 !important;
  /* Force remove block padding specifically */
}

/* Also target the more specific selector shown in the screenshot */
div.gf-tabs .gf-tabs__panels {
  padding: 0 !important;
  padding-block: 0 !important;
}

.gf-tabs__panel {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  /* Ensure panel itself has no padding */
}

/* Gallery Grid Styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .long-headline {
    width: 100%;
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 25px;
  }

  section.tab_gallery {
    padding: 15px 30px 40px;
  }

  .gf-tabs__tab {
    padding: 10px 16px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .long-headline {
    font-size: 28px;
    line-height: 34px;
    height: auto;
    margin-bottom: 20px;
  }

  section.tab_gallery {
    padding: 10px 15px 30px;
  }

  .gf-tabs__tab {
    padding: 8px 14px;
    font-size: 14px;
  }
}