/*
 Theme Name:   Interijeri Krklec Theme
 Theme URI:    https://example.com/my-custom-theme
 Description:  A custom child theme of Twenty Twenty-Four
 Author:       Your Name
 Author URI:   https://example.com
 Template:     twentytwentyfour
 Version:      1.0
*/

@import url("../twentytwentyfour/style.css");

/* Add your custom CSS here */

/* Base */
body.admin-bar header {
  top: 32px;
}

body main {
  margin-top: 80px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.2s ease-in-out;
}

header.header--scroll {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 599px) {
  header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    font-size: 25px;
  }
}

.wp-block-site-title a {
  color: inherit;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  outline: none;
}

.wp-block-navigation a {
  color: inherit;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  outline: none;
  transition: all 0.2s ease-in-out;
}

header .wp-block-navigation a:hover {
  color: #cfcabe !important;
}

/* Footer */
footer {
  margin: 0;
}

footer .wp-block-navigation a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 800px) {
  .wp-block-site-logo {
    max-width: 230px !important;
  }

  .wp-block-navigation .wp-block-navigation-item {
    font-size: 14px !important;
  }
}

.js-aos-animation-fade-up {
    visibility: hidden;
}

/* Hero */
@media screen and (min-width: 601px) {
  .hero {
    min-height: 650px;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
  }

  .hero .wp-block-media-text__media {
    height: 100%;
  }

  .hero .wp-block-media-text__media img {
    object-fit: cover;
    height: 100%;
  }

  .hero .wp-block-media-text__content {
    padding-left: var(--wp--preset--spacing--50);
  }
}

.hero .wp-block-media-text__content p {
  text-align: justify;
}

@media screen and (min-width: 1488px) {
  .hero .wp-block-media-text__content {
    padding-left: 0;
    margin-left: calc(50vw - (var(--wp--style--global--wide-size) / 2) - 8px);
  }
}

@media screen and (max-width: 992px) {
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }

  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
  }

  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }

  .wp-block-columns {
    align-items: normal !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap !important;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }

  .wp-block-column .wp-block-heading {
    transform: none !important;
    writing-mode: initial !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  .wp-block-column .wp-block-group.is-content-justification-left {
    margin-right: auto;
  }
}

.wp-block-column .wp-block-group p {
  text-align: justify;
}

/* Contact section */
.contact-block {
  margin-bottom: 25px;
}

.contact-block p {
  margin: 0;
}

.contact-block p {
  display: flex;
  align-items: center;

  &:not(:last-child) {
    margin-bottom: 10px;
  }
}

.contact-block p svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Button */
.wp-block-button a {
  color: inherit;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.wp-block-button a:hover {
  opacity: 0.7;
}

/* Author section */
.author-quote-block .wp-block-columns .wp-block-column:first-child {
  position: relative;
}

.author-quote-block .wp-block-columns .wp-block-column:first-child::before {
  content: '';
  display: block;
  position: absolute;
  top: -50px;
  left: -25px;
  width: 150px;
  height: 150px;
  background-image: url('./images/quote.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
}

@media screen and (min-width: 782px) {
  .author-quote-block .wp-block-columns .wp-block-column:first-child::before {
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
  }
}

/* Social icons */
.social-icons a {
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  display: inline-block;
  text-decoration: none;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

.social-icons a:hover {
  opacity: 0.7;
}

.social-icons a:not(:last-child) {
  margin-right: 10px;
}


/* Cookie */
.cky-notice {
  font-family: var(--wp--preset--font-family--body);
  color: #111111;
}

.cky-notice .cky-btn,
.cky-footer-wrapper .cky-btn {
  color: #111111 !important;
  border: 1px solid #111111 !important;
}

.cky-notice .cky-btn-accept,
.cky-footer-wrapper .cky-btn-accept {
  background-color: #111111 !important;
  border: 1px solid #111111 !important;
  color: #ffffff !important;
}

.cky-btn-revisit-wrapper {
  background-color: #111111 !important;
}

/* Facebook feed */
.facebook-feed .efbl_feed_wraper {
  max-width: 100% !important;
  width: 100% !important;
}

.facebook-feed .efbl-halfwidth-skin .efbl-row {
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}

.facebook-feed .efbl-halfwidth-skin .efbl-row .efbl-col-sm-6 {
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.facebook-feed .efbl-halfwidth-skin .efbl-row .efbl-col-sm-6.efbl-feed-content {
  padding: 15px !important;
}

.facebook-feed .efbl_feeds_holder {
  display: flex !important;
  gap: 25px !important;
  flex-wrap: wrap !important;
  justify-content: space-between;
}

.facebook-feed .efbl-story-wrapper {
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: 100%;
}

.facebook-feed .efbl-story-wrapper .efbl_feed_popup {
  outline: none;
}

.facebook-feed .efbl-story-wrapper .efbl_feed_popup img {
  display: block;
}

.facebook-feed .efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-post-footer {
  margin: 0 !important;
}

.facebook-feed .efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-thumbnail-col a img {
  min-height: 320px !important;
  max-height: 320px !important;
  object-fit: cover !important;
}

.facebook-feed .efbl-halfwidth-skin .efbl-thumbnail-wrapper .efbl-post-footer .esf-share-wrapper .esf-share {
  color: #111111 !important;
  border-radius: 0 !important;
  border: 1px solid #111111 !important;
  background: transparent !important;
}

.facebook-feed .efbl-story-wrapper .efbl-post-footer .efbl-view-share a {
    color: #111111 !important;
    border-radius: 0 !important;
    border: 1px solid #111111 !important;
    background: transparent !important;
}

.facebook-feed .efbl-story-wrapper .efbl-post-footer .efbl-view-share a:hover {
  opacity: 0.7 !important;
}

@media screen and (min-width: 1024px) {
  .facebook-feed .efbl-story-wrapper {
    width: calc(33.3333% - 20px) !important;
  }
}
