/* Additions on top of site.css for Science Square-only content
   (gallery, map, paper download links, social links, image viewer). */

[hidden] {
  display: none !important;
}

.logo-img {
  height: 50px;
  max-width: 60px;
}

.logo-text {
  white-space: nowrap;
}

.hero-slide.has-photo {
  background-size: cover;
  background-position: center;
}

/* Announcements: paper download links */
.announce-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
}

.announce-links a {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
}

.announce-empty {
  padding: 22px;
  color: var(--muted);
}

/* Gallery */
.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef1f5;
  overflow: hidden;
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--blue-soft-2), var(--blue-soft));
  cursor: zoom-in;
}

.gallery-media img,
.gallery-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-media .play {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.gallery-card h3 {
  padding: 14px 18px 16px;
  font-size: 1rem;
}

/* Helpline: map + socials */
.helpline-map {
  margin: 32px auto 0;
  max-width: 1050px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.helpline-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.helpline-map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.helpline-map-foot p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.helpline-map-foot .icon {
  color: var(--accent);
  margin-top: 3px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff1f;
  color: var(--white);
  transition: background 0.2s;
}

.socials a:hover {
  background: var(--accent);
}

/* Enquiry form extras */
.form-grid textarea {
  font: inherit;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 400;
  resize: vertical;
}

.form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft-2);
  outline: none;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

/* Image / video viewer */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px 64px;
  background: rgba(8, 31, 77, 0.92);
}

.image-modal.open {
  display: grid;
}

.modal-figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.modal-figure img,
.modal-figure video {
  max-width: min(1100px, 100%);
  max-height: 80vh;
  border-radius: 12px;
}

.modal-figure figcaption {
  color: var(--white);
  font-weight: 600;
}

.modal-close,
.modal-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-close {
  top: 16px;
  right: 16px;
}

.modal-nav {
  top: 50%;
  transform: translateY(-50%);
}

.modal-nav-left {
  left: 12px;
}

.modal-nav-right {
  right: 12px;
}

@media (width<=600px) {
  .image-modal {
    padding: 16px 12px;
  }

  .modal-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .helpline-map iframe {
    height: 260px;
  }
}

.legacy-links a {
  display: grid;
}

@media (width<=480px) {
  .header-row {
    gap: 10px;
  }

  .header .logo-img {
    height: 40px;
    max-width: 48px;
  }

  .header .logo-text {
    font-size: 1.1rem;
  }

  .header .logo-text small {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .quick-contact {
    gap: 6px;
  }

  .qc-btn {
    width: 36px;
    height: 36px;
  }
}
