/* Base styles */
:root {
  --primary-color: #07b5e0;
  --text-color: #4a4a4a;
  --content-width-lg: 1024px;
  --content-width-md: 1024px;
  --font-family: "Mulish", sans-serif;
}

/* Typography scale using Bootstrap's classes */
.h1,
h1 {
  font-size: calc(1.3rem + 1.3vw) !important;
}

.h2,
h2 {
  font-size: calc(1.2rem + 0.9vw) !important;
}

.h3,
h3 {
  font-size: calc(1.1rem + 0.6vw) !important;
}

figcaption {
  font-size: 1rem !important;
}

/* Updated video-content text sizes */
.video-content p {
  font-size: 1rem !important;
  line-height: 1.1;
}

/* Gallery styles */
.video-gallery-carousel {
  overflow: hidden;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
}

.video-gallery-item {
  display: none;
  width: 100%;
  max-width: var(--content-width-md);
}

.video-gallery-item.active {
  display: block;
}

/* Video caption styles */
.video-caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.caption-left, .caption-right {
  width: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Video gallery carousel styles */
.video-gallery-carousel video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Button container styles */
.video-gallery-buttons {
  margin: 1rem auto;
  width: 100%;
  max-width: var(--content-width-md);
  text-align: center;
}

/* General button styles */
.video-gallery-buttons .button {
  padding: 0;
  height: auto;
  overflow: hidden;
  width: 150px;
  height: 39px;
  transition: all 0.3s ease;
}

.button p {
  font-size: 0.96rem;
  font-family: "Mulish", sans-serif !important;
}

.video-gallery-buttons .button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Primary button state */
.video-gallery-buttons .button.is-primary {
  background-color: var(--primary-color);
  border: 3px solid var(--primary-color);
  padding: 0;
}

/* Button variations */
.video-gallery-buttons .button.is-wide {
  width: 180px;
}

.video-gallery-buttons .button.is-two-line {
  width: 180px;
  height: 50px;
}

.video-gallery-buttons .button.is-two-line p {
  white-space: nowrap;
  width: 200px;
  padding: 5px;
  text-align: center;
  word-wrap: break-word;
}

/* Scene button styles */
.scene-button {
  padding: 0 !important;
  border: none !important;
  background: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.2rem;
  width: 100%;
  max-width: 260px; /* Adjusted to fit the slider */
  position: relative;
  display: inline-block;
}

/* Custom Slider Styles */
.custom-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto;
}

.slider-window {
    overflow: hidden;
    width: 780px; /* 260px * 3 columns */
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    width: max-content;
}

.slider-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 260px;
    flex-shrink: 0;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.slider-btn {
    cursor: pointer;
    padding: 10px;
    font-size: 2rem;
    color: var(--primary-color);
    z-index: 10;
    user-select: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    color: #059dc2;
    transform: scale(1.1);
}

.slider-btn.prev-btn {
    margin-right: 10px;
}

.slider-btn.next-btn {
    margin-left: 10px;
}

/* Ensure images in buttons fit */
.slider-column .scene-button {
    width: 100%;
    max-width: 100%;
}


.slider-arrow {
  cursor: pointer;
  padding: 10px;
  font-size: 2rem;
  color: #b5b5b5;
  z-index: 10;
  user-select: none;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.slider-arrow:hover {
  color: var(--primary-color);
}

.slider-arrow.disabled {
  color: #e0e0e0;
  cursor: default;
  pointer-events: none;
}

/* Keep existing scene button styles */
.scene-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.scene-button:hover {
  transform: scale(1.05);
}

.scene-button.is-primary {
  position: relative;
}

.scene-button.is-primary::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 3px solid var(--primary-color);
  border-radius: 8px;
  pointer-events: none;
}

/* Content styles */
.video-content {
  margin: 1.5rem auto;
  text-align: center;
  padding: 0 1rem;
  max-width: var(--content-width-md);
}

.hero-body .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.title.is-2 {
  text-align: center;
  margin-top: 0.8rem;
  margin-bottom: 1.6rem;
}

/* Figure styles */
figure {
  width: 100%;
  max-width: var(--content-width-lg);
  margin: 0.1rem auto;
  text-align: center;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0.1rem;
}

figure video {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0.1rem;
}

figure figcaption {
  color: var(--text-color);
  padding: 0 1rem;
  text-align: left;
  font-size: 1.3rem !important;
}

/* Container responsive styles */
.container {
  max-width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Image-Video pair layout */
.image-video-pair {
  display: flex;
  gap: 20px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

.image-container, .video-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-container {
  flex: 0 0 100%;
  max-width: 25%;
}

.video-container {
  flex: 0 0 100%;
  max-width: 640px;
}

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

.video-container video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Action button styles */
.button.is-action-button {
  background-color: white;
  border: 1px solid #dbdbdb;
  color: #363636;
  transition: all 0.3s ease;
}

.button.is-action-button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Two-line button styles */
.button.is-two-line {
  background-color: white;
  border: 1px solid #dbdbdb;
  color: #363636;
  transition: all 0.3s ease;
}

.button.is-two-line.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
