/*
Theme Name: University of Pannonia
Version: 1.0
Description: Unofficial WordPress website theme for the University of Pannonia, Veszprém. The theme has a few pre-built shortcodes that can be used to list posts in cards style, and also for a few other functionalities. PLease check the following link for details: https://doc.uni-pannon.hu/wp-shortcodes
Author: University of Pannonia
Author URI: https://uni-pannon.hu/
Template: twentytwentyfive
*/

#header-main .wp-block-columns {
  flex-wrap: nowrap !important;
}

.site-logo-link {
  line-height: 0;
}

.content-section {
  max-width: calc(1300px + 4rem);
  margin: auto;
}

.h-padding-2 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.hv-padding-4-2 {
  padding: 4rem 2rem;
}

.pos-relative {
  position: relative;
}

.pos-absolute {
  position: absolute;
}

.hero-wave-wrapper {
  width: 100%;
  bottom: 0;
  height: 60px;
}

@media screen and (max-width: 767px) {
  .h-padding-2 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hv-padding-4-2 {
    padding: 3rem 1rem;
  }

  #header-main .wp-block-columns {
    flex-wrap: nowrap !important;
  }
}

/*
=====
home
=====
*/

#home-hero {
  background-image: url('https://wordpress.uni-pannon.hu/wp-content/uploads/images/alap-borito.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/*
=====
bejegyzés + archív oldal
=====
*/

.post-categories {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-posts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.custom-post-thumbnail br,
.custom-post > p,
.custom-content p {
  display: none;
}

.custom-post {
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-basis: 33.333%;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.2);
}

.custom-post ul {
  margin: 0.5em 0 0.5em;
  padding-left: 18px;
}

.custom-post a,
.product-categories a {
  text-decoration: none;
}

.custom-post a:hover,
.product-categories a:hover {
  text-decoration: underline;
}

.custom-content {
  padding: 1rem;
}

.custom-content ul a {
  font-size: 0.825rem;
}

.custom-post-thumbnail img {
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: cover;
}

.custom-post ul a,
.custom-post li::marker,
.uni-product-categories a,
.uni-product-categories li::marker {
  color: #00b0bd;
}

.custom-post li::marker {
  line-height: 0;
}

.custom-post h4,
.custom-post p {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.custom-post h4,
.custom-post .custom-content-heading {
  color: #135b8b;
  text-decoration-color: #135b8b;
}

.custom-post p {
  font-size: 1rem;
}

.uni-posts-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.wp-block-gallery img {
  max-height: 200px !important;
}

#single-post .pgc-sgb-cb.wp-block-pgcsimplygalleryblock-grid {
  min-height: unset;
}

#single-post .pgcsimplygalleryblock-grid-content {
  gap: 1rem;
  flex-wrap: nowrap !important;
  padding: 0 !important;
}

#single-post .pgcsimplygalleryblock-grid-main-wrap.pgc-image {
  padding: 0 !important;
}

#single-post .pgcsimplygalleryblock-grid-item.pgc-image {
  height: 200px !important;
}

#single-post .pgcsimplygalleryblock-grid-item-wrap img {
  width: 100% !important;
  object-fit: cover;
  position: static !important;
  height: 200px !important;
  max-height: 200px !important;
}

@media screen and (max-width: 1024px) {
  .custom-post {
    flex-basis: 100%;
  }

  #single-post .pgcsimplygalleryblock-grid-content {
    flex-wrap: wrap !important;
  }

  #single-post .pgcsimplygalleryblock-grid-item.pgc-image {
    width: 100% !important;
  }
}

@media screen and (max-width: 767px) {
  .custom-posts-wrapper {
    grid-template-columns: 1fr;
  }

  .custom-cats-wrapper ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 2em;
  }
}