.circular-gallery {
  width: 100%;
  height: 700px;
  position: relative;
  overflow: hidden;
  background: #457d58 !important;
  contain: layout style paint;
}

.circular-gallery canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure the gallery container has proper positioning */
.gallery-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #457d58;
  min-height: 700px;
}

.gallery-header {
  margin-top: calc(var(--spacing-sm) * 0.1);
  margin-bottom: calc(var(--spacing-sm) * 0.1);
  text-align: center;
}

.gallery-title {
  font-family: var(--serif-font);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  margin: 0;
}

.gallery-title a {
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
}

.gallery-title a:hover {
  color: #f0f0f0;
}

.gallery-title a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-green);
  transition: width var(--transition-normal);
}

.gallery-title a:hover::after {
  width: 100%;
}

.gallery-container {
  width: 100%;
  max-width: 1400px;
  height: 750px;
  position: relative;
  background-color: #457d58 !important;
  overflow: hidden;
  contain: layout style paint;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-section {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 600px;
    overflow: hidden;
  }
  
  .gallery-container {
    height: 550px;
    overflow: hidden;
  }
  
  .circular-gallery {
    height: 550px;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: var(--spacing-md);
    min-height: 650px;
    overflow: hidden;
  }
  
  .gallery-container {
    min-height: 550px;
    height: auto;
    overflow: hidden;
  }
  
  .circular-gallery {
    min-height: 550px;
    height: auto;
    overflow: hidden;
  }
}