@media (max-width: 767px) {

  /* Email/Call group left-aligned on mobile */
  .email-call-group {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Social media buttons centered and closer together */
  .social-buttons-group {
    display: flex !important;
    justify-content: center !important;  /* centers the icons */
    gap: 8px;  /* adjust spacing between icons; smaller number = closer together */
    flex-wrap: nowrap !important;
    width: auto !important;  /* let the group shrink to content */
  }

  /* Hide social media labels on mobile */
  .social-buttons-group .wp-block-social-link-label {
    display: none;
  }

  /* Remove extra spacing from SVG icons */
  .social-buttons-group .wp-block-social-link-anchor svg {
    margin-right: 0;
  }

  /* Optional: shrink logo if needed */
  .site-logo img {
    max-width: 120px;
    height: auto;
  }
}

/* Desktop fixed size */
@media (min-width: 768px) {
  .responsive-calendar {
    width: 375px;   /* fixed desktop width */
    height: 300px;  /* fixed desktop height */
    padding-bottom: 0;  /* remove mobile aspect ratio */
  }

  .responsive-calendar iframe {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Mobile responsive size */
@media (max-width: 767px) {
  .responsive-calendar {
    position: relative;
    padding-bottom: 75%; /* maintains aspect ratio on mobile */
    height: 0;
    overflow: hidden;
  }

  .responsive-calendar iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
  }
}

/* Hide Cathedral theme mobile Navigation block menu */
@media (max-width: 768px) {
    /* Target the header navigation block */
    header .wp-block-navigation {
        display: none !important;
    }
}

