.announcement-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
}

.announcement-modal {
  position: relative;
  width: min(580px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 60px rgba(8, 28, 58, 0.3);
  display: flex;
  flex-direction: column;
}

.announcement-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  z-index: 3;
}

.announcement-close:hover {
  background: rgba(0, 0, 0, 0.7);
}
 
.announcement-slides {
  position: relative;
  flex: 1;
  overflow-y: auto;
}

.announcement-slide {
  display: none;
  gap: 0;
  color: #ffffff;
  justify-items: center;
  align-items: center;
  text-align: center;
  min-height: 320px;
  background: rgba(0, 0, 0, 0.9);
  padding: 0;
}

.announcement-slide.is-active {
  display: grid;
}

.announcement-slide.has-image {
  grid-template-columns: 1fr;
}

.announcement-image {
  position: relative;
  width: 100%;
  cursor: zoom-in;
}

.announcement-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.announcement-text {
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-line;
}

.announcement-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem 1.4rem;
  background: rgba(0, 0, 0, 0.85);
}

.announcement-nav {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.announcement-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.announcement-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.announcement-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.announcement-dot.is-active {
  transform: scale(1.25);
  background: #ffffff;
}

.announcement-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

body.announcement-open {
  overflow: hidden;
}

.announcement-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10000;
}

.announcement-zoom-backdrop img {
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0;
  object-fit: contain;
}

.announcement-zoom-backdrop button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.announcement-zoom-backdrop button:hover {
  background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 540px) {
  .announcement-modal {
    width: 100%;
    border-radius: 0;
  }

  .announcement-slide {
    min-height: 320px;
  }

  .announcement-text {
    padding: 1.2rem;
  }
}
