@import url("https://fonts.googleapis.com/css2?family=Edu+TAS+Beginner:wght@400;500;600&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
body {
  margin: 0;
  font-family: 'Edu TAS Beginner', cursive; }

/*menu*/
#page {
  margin-top: 50px; }

.home__categories {
  position: fixed;
  top: 0;
  background: #fff;
  left: 0;
  width: 100%;
  z-index: 100;
  text-align: center; }

.categories {
  margin: 0;
  padding: 0;
  list-style: none; }

.categories__item {
  padding: 1em;
  display: inline-block;
  vertical-align: top; }

.categories__anchor {
  font-size: .9em;
  color: inherit;
  text-transform: lowercase;
  -webkit-transition: opacity .6s;
  transition: opacity .6s; }

/*loader*/
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease-out; }

.loader-container.fadeOut {
  /* Set opacity to 0 during fade-out animation */
  opacity: 0; }

.loader-container.fadeIn {
  /* Set opacity to 0 during fade-out animation */
  opacity: 1; }

.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #000000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite; }

@keyframes spin {
  0% {
    transform: rotate(0deg); }
  100% {
    transform: rotate(360deg); } }

.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; }

.grid-item {
  position: relative;
  width: calc(50% - 0px);
  /* Two columns with no gap */
  margin-bottom: 0px;
  box-sizing: border-box;
  overflow: hidden; }

.grid-content {
  position: relative;
  overflow: hidden; }

#load-more-posts {
  padding: 20px;
  display: flex;
  width: 200px;
  text-align: center;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0 auto;
  margin-top: 25px;
  position: relative;
  /* Position relative to allow absolute positioning of pseudo-elements */ }
  #load-more-posts:hover {
    color: #fff;
    cursor: pointer; }

#load-more-posts::before,
#load-more-posts::after {
  content: "";
  position: absolute;
  background-color: #000;
  transition: all 0.3s ease;
  z-index: -1; }

#load-more-posts::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px; }

#load-more-posts::after {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 100%; }

#load-more-posts:hover::before {
  height: 100%; }

#load-more-posts:hover::after {
  width: 100%; }

.background-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease-in-out;
  background-color: #000;
  padding-bottom: 56%;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0; }

.background-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* Assuming a 16:9 aspect ratio (9 / 16 * 100) */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; }

.background-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; }

.title,
.subtitle {
  color: #fff;
  font-size: 1.5em;
  opacity: 1;
  /* Initially hidden */
  transition: opacity 0.3s ease-in-out;
  margin: 0; }

/* Hover styles */
.grid-item:hover {
  cursor: pointer; }

.grid-item:hover .background-wrapper {
  opacity: 0.3; }

.title_wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  /* Align text center */
  opacity: 0;
  -webkit-transform: translate(-50%, 10%);
  -ms-transform: translate(-50%, 10%);
  transform: translate(-50%, 10%);
  -webkit-transition: all .6s ease;
  transition: all .6s ease;
  width: 100%; }

.grid-item:hover .title_wrapper {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%); }

.grid-content iframe {
  display: none; }

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 9998; }

#vimeo-player-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); }

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 9999; }

.contact {
  padding-top: 2em;
  padding-bottom: 2em; }

.contact__text {
  font-size: .8em;
  line-height: 1.3em; }

.contact__text {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center; }

.contact__text div {
  width: 15em;
  padding: 2em 1em 1em; }

.wysiwyg h3, .wysiwyg h4, .wysiwyg h5, .wysiwyg h6 {
  margin-bottom: 0.5em;
  font-size: 1em; }

wysiwyg p {
  margin: 0;
  padding: 0;
  padding-bottom: 1em; }
