/* Gallery Section Styles */
.fireside-gallery-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color_surface_default, #fff);
  padding: 32px 0;
  overflow-x: hidden;
}

.fireside-gallery-public {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.fireside-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.fireside-gallery-imagewrap {
  width: 100%;
  max-width: 650px;
  min-width: 140px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e6eaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,48,85,0.08);
  margin: 0 12px;
}

.fireside-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
}

.fireside-gallery-arrow {
  background: var(--color_surface_default, #fff);
  border: 2px solid var(--color_primary_default, #2d4686);
  color: var(--color_primary_default, #2d4686);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin: 0 12px;
}

.fireside-gallery-modal-arrow:hover,
.fireside-gallery-arrow:hover {
  background: var(--color_primary_default, #2d4686);
  color: #fff;
}

.fireside-gallery-indicator {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--color_secondary_default, #666);
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.05em;
}

/* Modal Styles */
.fireside-gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}
.fireside-gallery-modal.open { display: flex; }

.fireside-gallery-modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  padding: 0 12px;
  gap: 16px;
}

.fireside-gallery-modal-arrow {
  background: rgba(255,255,255,0.87);
  border: 2px solid var(--color_primary_default, #2d4686);
  color: var(--color_primary_default, #2d4686);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1011;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  margin: 0 12px;
  flex-shrink: 0;
}

.fireside-gallery-modal-img {
  max-width: 70vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  background: #fff;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.23);
  border-radius: 12px;
  margin: 0 12px;
}

.fireside-gallery-modal-close {
  color: #fff;
  position: fixed;
  top: 16px;
  right: 32px;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2000;
  user-select: none;
  transition: color 0.15s;
  background: transparent;
  border: none;
  outline: none;
}
.fireside-gallery-modal-close:hover {
  color: #2d4686;
}

/* ------ RESPONSIVE STYLES 1023px------ */
@media (max-width: 1023px) {
  .fireside-gallery-imagewrap {
    width: 100%;
    max-width: 600px;
    height: 350px;
  }
  .fireside-gallery-arrow,
  .fireside-gallery-modal-arrow {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
  }
  .fireside-gallery-modal-close {
    top: 16px; right: 24px;
  }
}

/* ------ RESPONSIVE STYLES 900px------ */
@media (max-width: 900px) {
  .fireside-gallery-imagewrap {
    max-width: 98vw;
    min-width: 100px;
    aspect-ratio: 16/9;
  }
  .fireside-gallery-controls { gap: 4px; }
  .fireside-gallery-modal-content { max-width: 98vw; max-height: 80vh; }
  .fireside-gallery-modal-img { max-width: 62vw; max-height: 60vh; }
  .fireside-gallery-arrow,
  .fireside-gallery-modal-arrow { width: 32px; height: 32px; font-size: 1.2rem; margin: 0 8px;}
  .fireside-gallery-modal-close { font-size: 2rem; }
}


/* ------ RESPONSIVE STYLES 767px ------ */
@media (max-width: 767px) {
  .fireside-gallery-section {
    padding: 12px 0;
  }
  .fireside-gallery-imagewrap {
    max-width: 96vw;
    min-width: 60px;
    aspect-ratio: 16/10;
    height: auto;
    position: relative;
    padding: 0;
    box-sizing: border-box;
  }
  .fireside-gallery-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
  .fireside-gallery-controls { gap: 2px; }

  .fireside-gallery-arrow,
  .fireside-gallery-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid var(--color_primary_default, #2d4686);
    color: var(--color_primary_default, #2d4686);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fireside-gallery-left,
  .fireside-gallery-modal-left { left: 6px; }
  .fireside-gallery-right,
  .fireside-gallery-modal-right { right: 6px; }

  .fireside-gallery-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 96vw;
    max-height: 60vh;
    padding: 0;
    gap: 0;
  }
  .fireside-gallery-modal-img {
    display: block;
    margin: 0 auto;
    max-width: 85vw;
    max-height: 44vh;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.23);
  }
  .fireside-gallery-modal-close {
    top: 5px;
    right: 8px;
  }
  .fireside-gallery-indicator {
    font-size: 0.9rem;
    margin-top: 8px;
  }
}