.mass-banner-container {
  background-color: #1a4d1a;
  color: white;
  padding: 0.75rem 0;
}

.mass-banner-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.mass-banner-loading {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}


.mass-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: hsl(var(--border-gold));
  padding: 0.5rem;
  transition: color 0.2s, transform 0.2s;
}

.mass-nav-btn:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.mass-nav-prev {
  left: 0.5rem;
}

.mass-nav-next {
  right: 0.5rem;
}


.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.info-ticker-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  max-height: 100px;
  overflow: hidden;
  background: linear-gradient(to right, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.05), hsl(var(--primary) / 0.1));
  border-top: 1px solid hsl(var(--primary) / 0.2);
  border-bottom: 1px solid hsl(var(--primary) / 0.2);
  margin-bottom: 3rem;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.info-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

#info-ticker-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid hsl(var(--border-gold));
  border-radius: 9999px;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  margin-right: 1rem;
}

#info-ticker-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0;
}

.info-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

#info-ticker-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-ticker-text-container {
  position: relative;
  flex: 1;
  max-width: 56rem;
  overflow: hidden;
  min-width: 0;
}

.info-text-fit {
  width: fit-content;
  text-align: center;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  margin: 0;
}

.info-ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-family-h2-h3);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.announcements-section {
  padding: 5rem 0;
  background-color: hsl(var(--background));
}

.announcements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;

}

.announcement-card,
.intention-card {
  height: 28rem;
  border: 1.5px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: hsl(var(--card));
  box-shadow: var(--shadow-elegant);
}

.announcement-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: hsl(var(--border-gold));
}

.announcement-card-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.announcement-card-image {
  flex: 0 0 65%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-card-image {
  transform: scale(1.02);
}

.announcement-card-image-ogloszenia {
  background-image: url('/assets/web/images/ogloszenia.jpeg');
}

.announcement-card-image-intencje {
  background-image: url('/assets/web/images/intencje-mszalne.jpeg');
}


.announcement-card-content-modern {
  flex: 1 1 auto;
  background: #ffffff;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  border-top: 2px solid #f3f4f6;
  transition: border-color 0.3s ease;
}

.announcement-card:hover .announcement-card-content-modern {
  border-top-color: hsl(var(--border-gold));
}

.announcement-card-text {
  flex: 0 0 auto;
}

.announcement-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-family: var(--font-family-h2-h3);
  line-height: 1.3;
  text-align: center;
}

.announcement-card-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 400;
}

.announcement-card-cta {
  background: transparent;
  color: hsl(var(--border-gold));
  border: 1.5px solid hsl(var(--border-gold));
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.announcement-card-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-card-cta {
  background: hsl(var(--border-gold));
  color: #ffffff;
}

.announcement-card:hover .announcement-card-cta svg {
  transform: translateX(0.25rem);
}


.news-section {
  padding: 5rem 0;
  background-color: hsl(var(--background));
}

.news-section .container {
  max-width: 1400px;
}

.news-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.news-nav-button {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid hsl(var(--border-gold));
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-nav-button:hover {
  background-color: hsl(var(--border-gold));
}

.news-nav-button:hover .news-nav-icon {
  color: white;
}

#news-prev {
  margin-left: 1rem;
}

#news-next {
  margin-right: 1rem;
}

.news-nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--border-gold));
  transition: color 0.2s ease;
}

.news-viewport {
  overflow: hidden;
  position: relative;
}

#news-viewport {
  position: relative;
  overflow: hidden;
  padding: 0px 20px 35px;
}

.news-track {
  display: flex;
  gap: 1.8rem;
  transition: transform 0.5s ease;
}

.news-wrapper {
  position: relative;
}


.category-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: hsl(var(--border-gold));
  color: white;
}


.cal-nav-icon {
  color: hsl(var(--border-gold));
}


.event-icon-gold {
  color: hsl(var(--border-gold));
}


.mass-schedule-note {
  max-width: 60%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.about-section-button {
  background: transparent;
  color: hsl(var(--border-gold));
  border: 1.5px solid hsl(var(--border-gold));
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.about-section-button:hover {
  background: hsl(var(--border-gold));
  color: #ffffff;
}

.about-section-button:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.about-section-button:focus:not(:focus-visible) {
  outline: none;
}


.mass-banner-separator {
  padding-left: 0.5rem;
  margin-left: 0.5rem;
}

.mass-banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 100%;
  scroll-snap-align: center;
  flex-shrink: 0;
}



.mass-banner-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.mass-banner-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.mass-banner-items {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 1.5px;
}

.mass-banner-inline-sep {
  color: hsl(var(--primary));
  text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
  letter-spacing: 0.05em;
  font-size: 1.2em;
  line-height: 1;
  margin: 0 3px;
}

.mass-schedule-empty {
  color: hsl(var(--muted-foreground));
}

.mass-schedule-empty-text {
  color: hsl(var(--primary-foreground) / 0.8);
}


.event-modal-badge {
  background: var(--category-color, hsl(var(--primary)));
  color: #fff;
}


.event-modal-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}


.calendar-grid-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  overflow: visible;
}

.calendar-grid-ready {
  opacity: 1;
  pointer-events: auto;
}


.event-element-wrap {
  height: auto;
}

.calendar-day-cell .event-element-wrap+.event-element-wrap {
  margin-top: 4px;
}

.event-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.2;
  height: 24px;
  min-height: 24px;
  padding: 0 6px;
  transition: opacity 0.2s ease-in-out;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 0;
}

.event-button-fade-in {
  opacity: 1;
}

.event-button-fade-out {
  opacity: 0;
}


.calendar-day-number {
  line-height: 0.6rem;
}


.calendar-hidden-box {
  z-index: 1000;
}


.calendar-more-button {
  padding: 1px 5px;
  line-height: 0.8rem;
  font-size: 12px;
  width: 78px;
  bottom: 5px;
  left: 6px;
  border: 0;
  color: #000;
  z-index: 1001;
}


.calendar-tooltip {
  z-index: 1003;
}

.calendar-tooltip-visible {
  opacity: 1;
  pointer-events: auto;
}

.calendar-tooltip-hidden {
  opacity: 0;
  pointer-events: none;
}


.calendar-tooltip-item {
  padding: 1px 5px;
  border-radius: 0;
}

.category-filter {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid hsl(var(--muted-foreground) / 0.3);
  color: hsl(var(--muted-foreground));
  background-color: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.category-filter:hover {
  background-color: hsl(var(--muted-foreground) / 0.1);
}

.category-filter[style*="--color"] {
  border-color: var(--color);
  color: var(--color);
  background-color: transparent;
}

.category-filter[style*="--color"]:hover {
  background-color: color-mix(in srgb, var(--color) 10%, transparent);
  color: var(--color);
}

.category-filter[style*="--color"].active {
  background-color: color-mix(in srgb, var(--color) 20%, transparent);
  color: var(--color);
  border-color: var(--color);
}

.category-filter.active {
  border-color: #1f2937;
  color: #1f2937;
  background-color: rgba(31, 41, 55, 0.08);
}

#category-filters.all-active .category-filter[style*="--color"] {
  background-color: color-mix(in srgb, var(--color) 15%, transparent);
}


.event-button {
  width: 100%;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.event-button:hover {
  opacity: 0.8;
}

.event-button[style*="--color"] {
  background-color: color-mix(in srgb, var(--color) 25%, transparent);
  border-left: 3px solid var(--color);
  border-right: 3px solid var(--color);
}


.event-spanning {
  margin: 0;
  padding: 0;
}

.event-button-spanning {
  margin: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  border-left: 3px solid;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.event-button-span-start {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 0.5rem;
  border-right: 0 !important;
}

.event-button-span-end {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 3px solid;
  padding-right: 0.5rem;
}

.event-button-span-middle {
  border-radius: 0;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.event-span-middle .event-button,
.event-span-middle .event-button-spanning,
.event-span-middle .event-button-span-middle,
.event-span-middle .event-button-spanning-full {
  border-left: 0;
  border-right: 0;
  padding-left: 6px;
}

.event-span-end .event-button,
.event-span-end .event-button-spanning,
.event-span-end .event-button-span-end,
.event-span-end .event-button-spanning-full {
  border-left: 0;
  padding-left: 6px;
}

.event-span-start .event-button-span-start {
  margin-right: -1px;
}

.event-span-middle .event-button-span-middle {
  margin-left: -1px;
  margin-right: -1px;
}

.event-span-end .event-button-span-end {
  margin-left: -1px;
}

.event-button-spanning[style*="--color"] {
  border-left-color: var(--color);
}

.event-button-span-end[style*="--color"] {
  border-right-color: var(--color);
}

.event-spanning-wrap {
  position: absolute;
  z-index: 10;
}

.event-button-spanning-full {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 1px 5px;
}

.event-button-spanning-full:hover {
  opacity: 0.8;
}

.event-button-spanning-full[style*="--color"] {
  background-color: color-mix(in srgb, var(--color) 20%, transparent);
  border-left: 3px solid var(--color);
  border-right: 3px solid var(--color);
}

.cal-nav-button {
  background-color: transparent;
  border: 1.5px solid hsl(var(--border-gold));
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(var(--primary));
  border-radius: 0.375rem;
}

.cal-nav-button:hover:not(.cal-nav-button-disabled) {
  background-color: hsl(var(--border-gold) / 0.1);
  border-color: hsl(var(--border-gold));
}

.cal-nav-button:active:not(.cal-nav-button-disabled) {
  transform: scale(0.95);
}

#cal-prev,
#cal-next {
  background-color: transparent;
  border: 1.5px solid hsl(var(--border-gold));
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(var(--primary));
  border-radius: 0;
}

#cal-prev:hover:not(.cal-nav-button-disabled),
#cal-next:hover:not(.cal-nav-button-disabled) {
  background-color: hsl(var(--border-gold) / 0.1);
  border-color: hsl(var(--border-gold));
}

#cal-prev:active:not(.cal-nav-button-disabled),
#cal-next:active:not(.cal-nav-button-disabled) {
  transform: scale(0.95);
}

.cal-nav-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: hsl(var(--primary));
}

.cal-today-button {
  background-color: hsl(var(--border-gold) / 0.1);
  border: 1.5px solid hsl(var(--border-gold));
  color: hsl(var(--border-gold));
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cal-today-button:disabled,
.cal-today-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background-color: hsl(var(--muted) / 0.2);
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.cal-nav-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-nav-button-enabled {
  opacity: 1;
  pointer-events: auto;
}

.cal-nav-button-transition {
  transition: opacity 0.2s ease-in-out;
}

.cal-nav-button-no-transition {
  transition: none;
}


.share-dropdown {
  position: fixed;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  transform: scale(0.8);
  opacity: 0;
}

.share-button.show {
  transform: scale(1);
  opacity: 1;
}

.share-button-facebook {
  background-color: #1877f2;
}

.share-button-facebook:hover {
  transform: scale(1.1);
  background-color: #166fe5;
}

.share-button-x {
  background-color: #000000;
}

.share-button-x:hover {
  transform: scale(1.1);
  background-color: #333333;
}

.share-button-copy {
  background-color: #6b7280;
  border: none;
  cursor: pointer;
}

.share-button-copy:hover {
  transform: scale(1.1);
  background-color: #4b5563;
}


.event-modal-badge[style*="--color"] {
  background-color: var(--color);
}


.calendar-tooltip-item[style*="--color"] {
  border: 1px solid var(--color);
}


#cal-month {
  font-family: var(--font-family-h2-h3);
  font-size: 1.25rem;
  font-weight: 600;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0;
}

.calendar-container {
  box-shadow: var(--shadow-elegant);
  border: 0;
  background-color: hsl(var(--card));
  padding: 1rem;
  margin-top: 2rem;
}

.calendar-header-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calendar-header-separator {
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(var(--border)), transparent);
  margin: 0.5rem 0;
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-month-nav h3 {
  flex: 1;
  text-align: center;
  margin: 0;
}

.calendar-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.calendar-month-nav button {
  flex-shrink: 0;
}


#category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#category-filters.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
}

#cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  position: relative;
}

.events-section {
  padding: 2rem 0 5rem;
}

.events-container {
  margin: 0 auto;
}

.events-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  /* padding: 2rem 0; */
}

.upcoming-events-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.events-calendar-container {
  grid-column: span 8 / span 8;
}

.about-section {
  padding: 5rem 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  transform: scale(1);
  transition: none;
}

.about-image:hover img,
.about-image:hover .img-scale {
  transform: scale(1);
}



.about-content p:first-of-type {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.about-content h2 {
  font-family: var(--font-family-h2-h3);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.about-content p:not(:first-of-type) {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.about-content p:last-of-type {
  margin-bottom: 2rem;
}

.about-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: 1.5px solid hsl(var(--border-gold));
  background: transparent;
  color: hsl(var(--border-gold));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.about-section-button:hover {
  background: hsl(var(--border-gold));
  color: #ffffff;
}

.gallery-section {
  padding: 5rem 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-grid {
  width: 100%;
  padding: 0;
}

.gallery-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;

}

.gallery-main-item {
  position: relative;
}

.gallery-main-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-item.group:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: white;
  padding: 0 1.5rem;
}

.gallery-overlay-content h3 {
  font-family: var(--font-family-h2-h3);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery-overlay-content p {
  font-size: 1.125rem;
  opacity: 0.9;
}

.gallery-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  height: 100%;
}

.gallery-sub-item {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.gallery-sub-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-sub-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-sub-item.group:hover .gallery-sub-overlay {
  opacity: 1;
}

.gallery-sub-overlay-content {
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.gallery-sub-overlay-content h3 {
  font-family: var(--font-family-h2-h3);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-sub-overlay-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.mass-schedule-section {
  padding: 5rem 0 8rem;
}

.mass-schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0 auto;

}

.mass-schedule-card {
  padding: 2.5rem;
  border: 1.5px solid hsl(var(--border-gold));
  box-shadow: var(--shadow-elegant);
}

.mass-schedule-card h3 {
  font-family: var(--font-family-h2-h3);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.mass-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mass-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.mass-schedule-item:last-child {
  border-bottom: 0;
}

.mass-schedule-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mass-schedule-item-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.mass-schedule-item-time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mass-schedule-item-note {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: right;
  margin-left: 4rem;
}

.mass-schedule-loading {
  color: hsl(var(--muted-foreground));
}

.event-modal-badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 0;
}


.calendar-placeholder {
  min-height: 90px;
  padding: 0.25rem;
  background-color: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
}

.calendar-day-cell {
  min-height: 90px;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  position: relative;
  min-width: 0;
  width: 100%;
}


.calendar-day-number {
  font-size: 3rem;
  font-weight: 500;
  position: absolute;
  top: 10px;
  left: 20px;
  width: 65px;
  opacity: 0.2;
  line-height: unset;
  text-align: center;
  color: hsl(var(--primary));
}


.calendar-event-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 50;
}

.event-element-wrap.group:hover .calendar-event-tooltip {
  opacity: 1;
}


.calendar-hidden-box {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: none;
}

.calendar-hidden-box:not(.hidden) {
  display: flex;
}


.calendar-more-button {
  position: absolute;
  text-align: left;

  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.125rem;
}

.calendar-more-button:hover {
  background-color: hsl(var(--muted) / 0.4);
}


.calendar-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.15rem;
  margin-bottom: 0;
  width: auto;
  min-width: 12rem;
  max-width: 16rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.calendar-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: transparent;
}

.calendar-tooltip-hidden {
  opacity: 0;
  pointer-events: none;
}

.calendar-tooltip-visible {
  opacity: 1;
  pointer-events: auto;
}

.calendar-tooltip-item {
  width: 100%;
  text-align: left;
  font-size: 0.75rem;
  background-color: hsl(var(--muted) / 0.2);
  transition: background-color 0.2s ease;
  padding: 0.35rem 0.5rem;
  border-radius: 0.125rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-tooltip-item:hover {
  background-color: hsl(var(--muted) / 0.4);
}

.calendar-tooltip-header {
  display: none;
}

.calendar-tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.news-item-wrapper {
  flex: 0 0 100%;
  min-width: 0;
  padding-left: 0;
}

.news-item {
  background-color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-item-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.news-item-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 1;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-content {
  padding: 1rem 1rem 4rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.news-item-date {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
  display: none;
}

.news-item-title {
  font-family: var(--font-family-h2-h3);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
  transition: color 0.2s ease;
}

.news-item.group:hover .news-item-title {
  color: hsl(var(--primary));
}

.news-item-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  background-color: transparent;
  border: 1.5px solid hsl(var(--border-gold));
  padding: 0.5rem 1rem;
  border-radius: 0;
  transition: all 0.2s ease;
  width: fit-content;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.news-item.group:hover .news-item-read-more {
  border-color: hsl(var(--border-gold));
}

.news-item-read-more svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.category-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--border-gold) / 0.1) 0%, hsl(var(--border-gold) / 0.05) 100%);
  border: 1.5px solid hsl(var(--border-gold) / 0.3);
  color: hsl(var(--primary));
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.upcoming-event-card {
  padding: 1.5rem;
  border: 1.5px solid hsl(var(--border-gold));
  box-shadow: var(--shadow-elegant);
  background-color: hsl(var(--card));
  min-height: 170px;
}

.upcoming-event-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.upcoming-event-date {
  flex-shrink: 0;
  width: 5rem;
  height: 4.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upcoming-event-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.upcoming-event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.upcoming-event-details {
  flex: 1;
}

.upcoming-event-title {
  font-family: var(--font-family-h4-h6);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upcoming-event-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.upcoming-event-meta svg {
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  color: hsl(var(--border-gold));
}

.upcoming-event-empty {
  color: hsl(var(--muted-foreground));
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalScaleOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

.event-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: modalFadeIn 0.3s ease-out forwards;
}

.event-modal-overlay.hide {
  animation: modalFadeOut 0.2s ease-in forwards;
}

.event-modal-card {
  background-color: hsl(var(--card));
  max-width: 43rem;
  width: 100%;
  margin: 0 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.event-modal-card.hide {
  animation: modalScaleOut 0.2s ease-in forwards;
}

.event-modal-image-container {
  position: relative;
  max-height: 22rem;
  width: 100%;
  overflow: hidden;
}

.event-modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-modal-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
}

.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  border: 1px solid hsl(var(--border-gold));
  cursor: pointer;
}

.event-modal-close span {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: hsl(var(--border-gold));
}

.event-modal-badge-container {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.event-modal-body {
  padding: 1.5rem;
}

.event-modal-header {
  margin-bottom: 0.5rem;
}

.event-modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.event-modal-title {
  font-family: var(--font-family-h2-h3);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  flex: 1;
}

.event-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.event-modal-action-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--border-gold) / 0.15) 0%, hsl(var(--border-gold) / 0.05) 100%);
  border: 1.5px solid hsl(var(--border-gold) / 0.3);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-modal-action-btn:hover {
  background: linear-gradient(135deg, hsl(var(--border-gold) / 0.25) 0%, hsl(var(--border-gold) / 0.15) 100%);
  border-color: hsl(var(--border-gold) / 0.5);
  transform: translateY(-1px);
}

.event-modal-action-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: hsl(var(--border-gold));
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.event-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--primary) / 0.2);
}

.event-modal-description {
  max-height: 120px;
  overflow-y: auto;
  font-size: 15px;
}


.event-modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.event-modal-info-item-full {
  grid-column: span 2;
}

.event-modal-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, hsl(var(--border-gold) / 0.15) 0%, hsl(var(--border-gold) / 0.05) 100%);
  border: 1.5px solid hsl(var(--border-gold) / 0.3);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.event-modal-info-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: hsl(var(--border-gold));
  stroke-width: 2;
}

.event-modal-info-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--border-gold));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.event-modal-info-value {
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  line-height: 1.4;
}

.event-modal-description h4 {
  font-family: var(--font-family-h4-h6);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-modal-description p {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  max-height: calc(1em * 1.625 * 5);
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--muted)) hsl(var(--muted) / 0.2);
}

.event-modal-description p::-webkit-scrollbar {
  width: 6px;
}

.event-modal-description p::-webkit-scrollbar-track {
  background: hsl(var(--muted) / 0.1);
  border-radius: 3px;
}

.event-modal-description p::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 3px;
}

.event-modal-description p::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

.newsletter-section {
  padding: 5rem 0;
}

.newsletter-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.newsletter-container {
  padding: 1.5rem;
  border: 2px solid hsl(var(--border-gold));
  box-shadow: var(--shadow-elegant);
  text-align: center;
}

.newsletter-container svg {
  width: 3rem;
  height: 3rem;
  color: hsl(var(--primary));
  margin: 0 auto 1rem;
}

.newsletter-container h2 {
  font-family: var(--font-family-h2-h3);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-container>p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  margin: 0 auto;
}

.newsletter-form .field {
  position: relative;
  flex: 1;
}

.newsletter-form .input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.newsletter-form .input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.newsletter-form .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.newsletter-form .cta {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: hsl(var(--primary));
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form .cta:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.newsletter-form .cta span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.newsletter-form .arrow {
  width: 1rem;
  height: 1rem;
  margin: 0;
  color: white;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.newsletter-container>p:last-child {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
}

@media (max-width: 767px) {

  .about-section,
  .events-section,
  .news-section,
  .announcements-section,
  .mass-schedule-section,
  .newsletter-section,
  .gallery-section {
    padding: 3rem 0 !important;
  }

  #news-viewport {
    padding: 0;
  }

  .calendar-header-container {
    display: flex;
    justify-content: space-between;
  }

  .about-image img {
    height: unset !important;
  }

  .info-ticker-container {
    padding: 1rem;
    margin-bottom: 3rem;
  }

  .info-ticker-wrapper {
    flex-direction: column;
  }

  #info-ticker-category {
    display: none;
  }

  #info-ticker-badge svg {
    margin-right: 0;
  }

  #info-ticker-badge {
    margin-right: 0;
  }

  .mass-banner-item {
    align-items: center;
    flex-direction: column;
  }



  .mass-banner-separator {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .mass-nav-prev {
    left: 0;
  }

  .mass-nav-next {
    right: 0;
  }


  .shadow-elegant.bg-card {
    padding: 1rem !important;
  }

  .calendar-container {
    margin-top: 5rem;
  }

  #info-text {
    font-size: 0.9rem;
  }

  #info-ticker-badge {
    display: none;
  }

  .about-content p:first-of-type {
    text-align: center;
  }

  .about-content h2 {
    text-align: center;
  }

  .about-section-button {
    margin: 0 auto;
    display: flex;
    width: fit-content;
  }

  .shadow-elegant .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .shadow-elegant .flex.items-center.justify-between>div {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  #category-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
  }

  #category-filters::-webkit-scrollbar {
    height: 4px;
  }

  #category-filters::-webkit-scrollbar-track {
    background: transparent;
  }

  #category-filters::-webkit-scrollbar-thumb {
    background: hsl(var(--border-gold));
    border-radius: 2px;
  }

  #category-filters .category-filter {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .grid.grid-cols-7 {
    min-width: 100%;
  }

  .grid.grid-cols-7>div {
    min-width: calc(14.28% - 0.5rem);
    font-size: 0.7rem;
    padding: 0.25rem 0.125rem;
  }

  #cal-grid {
    min-width: 100%;
  }

  .calendar-day-cell,
  .calendar-placeholder {
    min-height: 50px !important;
    padding: 0.25rem 0.125rem !important;
    font-size: 0.7rem;
    min-width: calc(14.28% - 0.5rem);
  }

  .calendar-day-number {
    font-size: 1rem !important;
    margin-bottom: 0.125rem !important;
    width: unset;
    left: 15px;
  }

  .event-element-wrap {
    height: 16px !important;
    margin-bottom: 0.125rem;
  }

  .event-button {
    padding: 0.5px 3px !important;
    font-size: 0.65rem !important;
    height: 15px;
    min-height: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-more-button {
    font-size: 0.65rem !important;
    padding: 0.5px 3px !important;
    width: auto !important;
    min-width: 50px !important;
    line-height: 1 !important;
  }

  .calendar-tooltip {
    width: 90vw !important;
    max-width: 300px !important;
    font-size: 0.75rem;
  }

  .calendar-hidden-box {
    max-width: 90vw;
    left: 0 !important;
    right: 0 !important;
  }

  .calendar-header-container {
    margin-bottom: 1rem;
  }

  .calendar-month-nav {
    gap: 0.5rem;
  }

  #cal-month {
    font-size: 1.1rem;
  }

  .calendar-nav-actions {
    gap: 0.375rem;
  }

  .cal-nav-button {
    width: 2rem;
    height: 2rem;
  }

  .cal-nav-icon {
    height: 1rem;
    width: 1rem;
  }

  .events-layout {
    gap: 0 !important;
    padding: 0 !important;
  }

  .news-item-wrapper {
    padding-left: 0 !important;
  }

  .news-nav-button {
    width: 2.5rem;
    height: 2.5rem;
  }

  #news-prev {
    margin-left: 0rem;
  }

  #news-next {
    margin-right: 0rem;
  }

  .news-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .event-modal-card {
    width: calc(100% - 2rem);
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
  }

  .event-modal-image-container {
    height: 18rem;
    flex-shrink: 0;
  }

  .event-modal-body {
    padding: 1rem;
    overflow-y: auto;
  }

  .event-modal-title {
    font-size: 1.15rem;
  }

  .event-modal-info-label {
    font-size: 0.75rem;
    margin-bottom: 0;
  }

  .event-modal-info-value {
    font-size: 0.875rem;
  }

  .event-modal-description h4 {
    font-size: 1rem;
  }

  .event-modal-description p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .announcement-card,
  .intention-card {
    padding: 0 1rem 1.5rem 1rem;
  }

  .gallery-sub-grid {
    min-height: 400px;
  }

  .announcements-grid .announcement-card {
    padding: 0rem 0 1rem;
  }

  .about-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .section-title {
    font-size: 2rem;
    padding: 0 15px;
  }
}


@media (max-width: 768px) {
  .event-modal-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
  }

  .event-modal-info-icon {
    width: 2rem;
    height: 2rem;
  }

  .event-modal-close {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--border-gold));
  }

  .event-modal-info-grid {
    gap: 0.5rem;
  }

  .mass-schedule-card {
    padding: 1.5rem 2rem;
  }
}


@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }

  .event-modal-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-modal-info-item-full {
    grid-column: span 1;

  }
}


@media (min-width: 768px) {
  .announcements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mass-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-container {
    margin-top: 0;
  }

  .news-item-wrapper {
    flex: 0 0 calc(50% - 0.75rem);
    padding-left: 0;
  }
}


@media (max-width: 1024px) {
  .about-section-button {
    padding: 0.75rem 1.5rem;
  }
}


@media (min-width: 1024px) {
  .news-item-wrapper {
    flex: 0 0 calc(33.333% - 1rem);
    padding-left: 0;
  }

  .events-layout {
    grid-template-columns: repeat(12, 1fr);
  }

  .upcoming-events-container {
    grid-column: span 4 / span 4;
  }

  .events-calendar-container {
    grid-column: span 8 / span 8;
  }

  .about-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-main-item {
    grid-column: span 1 / span 1;
  }
}

.devotion-header {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border-gold));
}