﻿@keyframes fadeInB {
  from {
    opacity: 0;
    transform: translateY(200px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-b {
  animation: fadeInB 1s ease-out forwards;
  opacity: 0;
  transform: translateY(200px);
}

@keyframes fadeInT {
  from {
    opacity: 0;
    transform: translateY(-200px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-t {
  animation: fadeInT 1s ease-out forwards;
  opacity: 0;
  transform: translateY(-200px);
}

.bg-main {
  background-color: #dbad59;
}

html, body, th, td {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 500;
}
@media (min-width: 768px) {
  html, body, th, td {
    font-size: 16px;
  }
}

.bible-verse .date-group {
  width: 80px;
  border-right: 1px solid #999;
}

.catechism {
  opacity: 0.9;
  color: white;
}
.catechism .date-group {
  color: #42a0bd;
}

.todays-mass {
  /* background-color: $main-green;*/
  opacity: 0.9;
  color: white;
  margin-bottom: 10px;
}
.todays-mass .date-group {
  color: #a4ff09;
}

.slogan {
  opacity: 0.9;
  color: white;
}
.slogan .date-group {
  color: #ff8402;
}
.slogan .scripture {
  color: #415f01;
  text-shadow: 0 0 2px #e9ecef;
}
@media (min-width: 768px) {
  .slogan .slogan-inner .readings {
    display: flex;
  }
}
.slogan .slogan-inner .readings .reading {
  margin-right: 10px;
  padding-right: 10px;
}
@media (min-width: 768px) {
  .slogan .slogan-inner .readings .reading {
    border-right: 1px solid #ccc;
  }
}
.slogan .slogan-inner .readings .reading:last-child {
  border-right: none !important;
}
.slogan .slogan-inner .readings .reading .number {
  font-size: 0.6em;
  font-weight: 400;
}

.date-group {
  line-height: 1.1;
  text-align: center;
  margin-right: 1rem;
  border-right: 1px solid #eee;
  padding-right: 1rem;
}
.date-group .month {
  font-size: 25px;
}
.date-group .date {
  font-size: 50px;
  font-weight: bold;
}
.date-group .day {
  font-size: 25px;
}

body {
  margin-bottom: 0;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.bg-light-green {
  background-color: rgb(203.65625, 253.34375, 97.65625);
}

a {
  color: #0077cc;
}

.home-announcements {
  background-image: url(../images/cross-cloud.jpeg);
  background-position: right top;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-welcome {
  background-image: url(../images/st-thomas-cross.png);
  background-position: left top;
  /* background-attachment: fixed; */
  background-size: contain;
  background-repeat: no-repeat;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

footer {
  background-color: #333;
  color: #eee;
}
footer a {
  color: #eee;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  color: white;
}
footer .title-contact a {
  color: #eee;
}
footer ul {
  padding-left: 0.25rem;
}
footer ul li {
  list-style: none;
}

.pg-section {
  position: relative;
  margin-bottom: 1px;
  border-width: 1px;
  border-style: dotted !important;
}
.pg-section .pg-section-header {
  position: absolute;
  top: -52px;
  right: 0;
  left: 0;
  display: none;
  padding: 10px;
}
.pg-section:focus-within, .pg-section:hover {
  border-style: solid !important;
  border-width: 3px !important;
}
.pg-section:focus-within .pg-section-header, .pg-section:hover .pg-section-header {
  display: block;
  margin: -2px;
}
.pg-section .pg-section-body {
  min-height: 200px;
  padding: 15px;
}

.site-title {
  text-decoration: none !important;
}
.site-title h1 {
  font-size: 20px;
  text-decoration: none !important;
  color: #415f01;
  font-family: "Montserrat", serif;
  font-weight: bold;
  font-style: normal;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .site-title h1 {
    font-size: 25px;
  }
}

.carousel {
  width: 100%;
  height: calc(100vh - 190px);
  position: relative;
  min-height: 750px;
}
.carousel .carousel-outer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 2;
}
.carousel .carousel-inner {
  position: absolute !important;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.carousel .carousel-inner .carousel-item {
  position: absolute !important;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.carousel .carousel-inner .carousel-item.slide1 {
  background-image: url(../images/syro-malabr-holymass-1.jpg);
}
.carousel .carousel-inner .carousel-item.slide2 {
  background-image: url(../images/syro-malabr-holymass-2.jpg);
}
.carousel .carousel-inner .carousel-item.slide3 {
  background-image: url(../images/syro-malabr-holymass-3.jpg);
}
.carousel .bible-verse {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  bottom: 0;
  /*font-family: 'Yeseva One', cursive;*/
  font-size: 18px;
}
@media (min-width: 768px) {
  .carousel .bible-verse {
    font-size: 20px;
    bottom: 50px;
  }
}

h1, h2, h3, h4, h5 {
  font-family: "Abel", serif;
  font-weight: bold;
  font-style: normal;
}

.navbar {
  background-color: #dbad59;
  min-height: 40px;
}
.navbar .navbar-toggler {
  position: absolute;
  right: 20px;
}
.navbar .navbar-toggler:focus {
  box-shadow: none !important;
}
.navbar .offcanvas {
  background-color: #dbad59;
}
.navbar .offcanvas .offcanvas-header {
  margin-top: 40px;
}
.navbar .offcanvas .offcanvas-header .btn-close {
  margin-top: -70px;
  margin-left: 350px;
}
.navbar .offcanvas .offcanvas-title {
  font-family: "Yeseva One", cursive;
  font-size: 18px;
}
.navbar .offcanvas .title-contact {
  border-top: 1px solid #fff;
  padding-top: 1rem;
}
.navbar .offcanvas .title-contact .ss-media {
  color: white;
}
.navbar .nav-item {
  padding: 5px;
}
.navbar .nav-item .dropdown-menu {
  border: none;
  background-color: #dbad59;
}
.navbar .nav-item .dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  color: white;
}
.navbar .nav-item .dropdown-menu .dropdown-item:hover, .navbar .nav-item .dropdown-menu .dropdown-item:active {
  background-color: #dbad59;
  text-decoration: underline;
}
.navbar .nav-item .nav-link {
  color: white;
  font-weight: 600;
  border-bottom: 2px solid #dbad59;
}
.navbar .nav-item .nav-link:hover {
  border-color: white;
}
.navbar .nav-item .nav-link:active, .navbar .nav-item .nav-link:focus {
  border-color: #dbad59;
}

.title-contact .ss-media {
  border: 1px solid #ccc;
  border-radius: 5px;
  /*
  i {
      font-size: 1.5em;
      color: #333;
  }

  &:hover {
      i {
          color: #fff;
      }
  }*/
}
.title-contact a {
  color: rgb(209.9108910891, 152.297029703, 47.0891089109);
  text-decoration: none;
}
.title-contact a:hover i {
  color: #666;
}

.card-white {
  border: none;
  /* border-radius: 0;*/
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.55) !important;
}

.card-orange {
  border: none;
  background-color: #dbad59;
  color: #000;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.55) !important;
}

p {
  margin-bottom: 0.5rem;
}

.scrolled {
  top: 0;
  position: fixed;
  left: 0;
  right: 0;
  height: 65px;
  z-index: 999;
}

.gallery-wrap {
  position: relative;
}
.gallery-wrap .gallery-title {
  position: absolute;
  padding: 30px;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
}
.gallery-wrap .gallery-title h3 {
  font-size: 3em;
}
.gallery-wrap .gallery-title a {
  color: white;
  font-weight: 600;
}
@media (min-width: 768px) {
  .gallery-wrap .gallery-title {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.gallery-wrap .gallery div {
  padding: 0 !important;
  overflow: hidden;
}
.gallery-wrap .gallery div img {
  min-height: 100%;
  min-width: 100%;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}
.popup-overlay.show {
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-overlay .popup-content {
  background: #fdfdfd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  max-width: 90%;
  max-height: 95vh;
  overflow: hidden;
}
.popup-overlay .popup-content .popup-body {
  max-height: calc(90vh - 45px);
  overflow: auto;
  padding: 15px;
}
.popup-overlay .popup-content.news-detail {
  box-shadow: none;
  background: none;
  max-width: 100vh;
  max-height: 100vh !important;
  overflow: hidden !important;
  flex-grow: 1 !important;
  padding: 0;
  border-radius: 0;
}
.popup-overlay .popup-content.news-detail .btn-cls, .popup-overlay .popup-content.news-detail .btn-download {
  border-radius: 50%;
  padding: 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2.5em;
  opacity: 0.8;
}
.popup-overlay .popup-content.news-detail .btn-cls:hover, .popup-overlay .popup-content.news-detail .btn-download:hover {
  color: rgb(255, 255, 255);
}
.popup-overlay .popup-content.news-detail .btn-download {
  top: 20%;
  left: 50%;
}
.popup-overlay .popup-content.news-detail .popup-body {
  max-height: 99vh;
  overflow: hidden;
  padding: 0;
}
.popup-overlay .popup-content.news-detail.show {
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner {
  overflow: hidden !important;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner .carousel-item .img {
  max-height: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner .carousel-item .img .img-inner {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  text-align: center;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner .carousel-item .img .img-inner img {
  border: 10px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner .carousel-item .btn-download {
  position: absolute;
  right: 20px;
  top: 20px;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner .carousel-item.description {
  background: #fff;
  width: 100%;
  height: 100%;
  padding: 30px;
  overflow: hidden;
  border-radius: 30px;
}
.popup-overlay .popup-content.news-detail .carousel .carousel-inner .carousel-item.description .news-description {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.popup-overlay .popup-content .popup-header {
  display: flex;
  justify-content: flex-end !important;
  padding: 0.25rem;
  border-bottom: 1px solid #ddd;
}

.weekly-card {
  padding: 1.5rem;
  background: white;
  display: inline-block;
}
.weekly-card h2 {
  display: block;
  border-bottom: none;
  margin-bottom: 0 !important;
  padding-bottom: 0.5rem !important;
  text-shadow: none !important;
  border-bottom: 1px solid #eee !important;
  font-size: 32px !important;
}
.weekly-card .item {
  padding: 10px;
  /*box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
  border-top: 1px solid orange;*/
  margin-bottom: 0.125rem;
}
.weekly-card .date-group {
  width: unset !important;
  border: none !important;
  display: flex !important;
  padding: 0 !important;
  margin: 0 !important;
}
.weekly-card .date-group .date, .weekly-card .date-group .day, .weekly-card .date-group .month, .weekly-card .date-group .time {
  margin-right: 8px;
}

.services {
  background: url(../images/church_service.jpg);
  background-size: contain;
  /* background: repeat; */
  background-repeat: no-repeat;
  background-position: right center;
}

.holy-mass .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.holy-mass .weekly-card {
  font-weight: 400;
  color: #666;
}
.holy-mass .weekly-card h2 {
  color: #dbad59;
  font-size: 38px;
}
.holy-mass .weekly-card .date, .holy-mass .weekly-card .time {
  font-size: 25px;
  color: #dbad59;
}
.holy-mass .weekly-card .day, .holy-mass .weekly-card .month {
  color: #999;
}

.arragements {
  margin-bottom: 1rem;
}
.arragements .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.arragements .weekly-card {
  font-weight: 500;
  color: #666;
  font-size: 16px;
  font-weight: 400;
  font-family: "Abel", serif;
  /*h2 {
      display: inline-block;
      border-bottom: 2px solid $main-green;
      margin-bottom: 1.5rem;
      padding-bottom: .5rem;
  }*/
}
.arragements .weekly-card h2 {
  color: #415f01;
  font-size: 38px;
}
.arragements .weekly-card .date-group {
  background: #eee;
  color: black;
  font-weight: bold;
  font-family: "Abel", serif;
  padding: 3px 8px !important;
  margin-right: 10px !important;
  width: 99px !important;
  text-align: center;
  justify-content: space-around;
}
.arragements .weekly-card .date-group .date, .arragements .weekly-card .date-group .day, .arragements .weekly-card .date-group .month {
  font-size: 16px;
  color: #415f01;
  text-shadow: none;
  font-weight: bold;
}
.arragements .weekly-card .unit {
  font-weight: 600;
}
.arragements .weekly-card strong {
  font-weight: 400;
  color: #333;
}

.unit-meetings .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.unit-meetings .weekly-card {
  font-weight: 400;
  font-family: "Abel", serif;
  color: #666;
  /*h2 {
      display: inline-block;
      border-bottom: 2px solid $main-blue;
      margin-bottom: 1.5rem;
      padding-bottom: .5rem;
  }*/
}
.unit-meetings .weekly-card h2 {
  color: #0274c2;
  font-size: 38px;
}
.unit-meetings .weekly-card .day {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
}
.unit-meetings .weekly-card .unit {
  font-weight: 600;
}
.unit-meetings .weekly-card .date-group {
  background: #eee;
  color: black;
  font-weight: bold;
  font-family: "Abel", serif;
  padding: 3px 8px !important;
  margin-right: 10px !important;
  width: 99px !important;
  text-align: center;
  justify-content: space-around;
}
.unit-meetings .weekly-card .date-group .date, .unit-meetings .weekly-card .date-group .day, .unit-meetings .weekly-card .date-group .month {
  font-size: 16px;
  color: #0274c2;
  text-shadow: none;
  font-weight: bold;
}

.news-main-container h2 {
  color: #333;
  display: inline-block;
  border-bottom: 2px solid #666;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  font-size: 38px;
}

.admin-news-images {
  display: flex;
}
.admin-news-images .news-image {
  max-width: 100px;
  display: flex;
  padding: 5px;
  position: relative;
  width: 100px;
  height: 100px;
  word-break: break-all;
  border: 3px solid #ddd;
  padding: 5px;
  margin: 5px;
  overflow: hidden;
  font-size: 0.8em;
  align-items: flex-end !important;
  background: #eee;
  border-radius: 0.5rem;
}
.admin-news-images .news-image .btn-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px !important;
  height: auto;
  line-height: 0.5;
}

.news-list {
  display: flex;
  justify-content: space-between !important;
}
.news-list .card.news-item {
  /*  max-width: 25%;
  width: 25%;
  margin: .25rem;*/
  /* max-height: 250px;*/
  overflow: hidden;
}
.news-list .card.news-item .card-img-top {
  width: 100%;
  object-fit: cover;
  object-position: top;
  max-height: 250px;
}
.news-list .card.news-item .news-detail {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-list .card.news-item .stretched-link {
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.news-list .card.news-item .card-title .date {
  color: #dbad59;
}
.news-list .card.news-item .card-img-overlay {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between !important;
}
.news-list .card.news-item .card-img-overlay .card-title {
  font-size: 1.3em;
}
.news-list .card.news-item .card-img-overlay .card-title, .news-list .card.news-item .card-img-overlay .stretched-link {
  font-weight: 500;
  font-family: "Montserrat", serif;
  background-color: rgba(255, 255, 255, 0.6);
}

.news-main-container {
  background-image: url("/images/eucharist.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #eee;
  text-shadow: 1px 1px 1px white;
}

image-gallery {
  display: block;
  max-width: 100%;
}

image-gallery img.preview {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}
@media (min-width: 576px) {
  image-gallery img.preview {
    max-height: 250px;
  }
}

image-gallery dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

image-gallery dialog {
  width: 95vw;
  height: 95vh;
  border: none;
  padding: 0;
  overflow: hidden;
}

image-gallery .dialog-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #111;
}

image-gallery .slides {
  flex: 1;
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

image-gallery .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
image-gallery .slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

image-gallery .controls {
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 1rem;
  background: #222;
  color: white;
  flex-wrap: wrap;
  gap: 0.5rem;
}
image-gallery .controls button,
image-gallery .controls a {
  background: transparent;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 2em;
}
image-gallery .controls .prevnext {
  position: fixed;
  top: 100px;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-self: flex-end;
  align-content: space-evenly;
  align-items: center;
  width: 80px;
  text-align: center;
}
image-gallery .controls .prevnext.prev {
  left: 5px;
}
image-gallery .controls .prevnext.next {
  right: 5px;
}

image-gallery .nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.truncated-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  position: relative;
  line-height: 1.5em;
  max-height: 4.5em;
  cursor: pointer;
}

.more-link {
  color: #415f01;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 4px;
}

.text-dialog {
  padding: 1em;
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 80%;
  text-align: right;
}
.text-dialog .dialog-content {
  max-height: 70vh;
  overflow-y: auto;
  white-space: pre-wrap;
  text-align: left;
}
.text-dialog .close-button {
  font-size: 1.5em;
  border: none;
  background: none;
}

.text-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

button:focus {
  outline: none;
}
