/*
Theme Name: Michelle Pröstler
Theme URI: https://greggae.de/
Author: Greg Gaede
Author URI: https://greggae.de/
Description: Michelle Pröstler website theme, based on the Twenty Twenty-Five theme. This is a block-based theme that supports full site editing and is designed to be accessible and customizable.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: michelleprostler
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* =Base ------------------------------------------------------------ */
:root {
  --mp-content-max: 850px;
  /* Card aspect ratio for Work grid tiles; change to 16/9, 4/3, etc. */
  --card-ratio: 16/9;
  --mp-fade-duration: 250ms;
}

body {
  font-family: 'Quicksand', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
}

.wp-site-blocks {
  margin: 0;
}

.wp-block-site-title {
  margin: 0;
  font-weight: 100;
}

.wp-block-post-content {
  margin: 0 auto;
  padding: 1.5rem 0;
}

.wp-block-group.alignfull,
.alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* =Header & Navigation -------------------------------------------- */
header.wp-block-template-part > .wp-block-group {
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  & .wp-block-site-title {
    order: 1;

    @media (min-width: 768px) {
      order: 2;
    }
  }

  & .social-icons {
    order: 2;

    @media (min-width: 768px) {
      order: 1;
    }
  }

  & .wp-block-navigation {
    order: 3;

    & .wp-block-page-list {
      justify-content: flex-start;

      @media (min-width: 768px) {
        justify-content: flex-end;
      }
    }
  }
}

.wp-block-navigation {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.wp-block-navigation a {
  text-decoration: none;
}

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

.social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 150px;
  height: 35px;

  & li a {
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    transition: border .3s;

    &:hover {
      border-color: #fff;

      & svg {
        transform: scale(1.5);
      }
    }

    & svg {
      display: block;
      transition: all .3s;
      width: 24px;
      height: 24px;
    }
  }
}

/* =Work Grid Cards ------------------------------------------------- */
.wp-block-post-featured-image a {
  display: block;
  aspect-ratio: var(--card-ratio);
}

.wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-post-title {
  margin-top: 0.35rem;
}

/* =Title Overlay --------------------------------------------------- */
.wp-block-post-featured-image {
  position: relative;
  overflow: hidden;
}

.wp-block-post-title.overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
}

.wp-block-post-title.overlay a {
  color: #fff;
  text-decoration: none;
}

.wp-block-post-featured-image:hover + .wp-block-post-title.overlay,
.wp-block-post-title.overlay:hover {
  opacity: 1;
}

.wp-block-post-featured-image a:focus-visible + .wp-block-post-title.overlay {
  opacity: 1;
}

/* Always visible overlay on touch/small screens */
@media (hover: none), (max-width: 768px) {
  .wp-block-post-title.overlay {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-post-title.overlay {
    transition: none;
  }
}

/* =Pagination ------------------------------------------------------ */
.wp-block-query-pagination a {
  text-decoration: none;
}

.wp-block-query-pagination a:hover {
  text-decoration: underline;
}

/* =Page Transition Fade Effect (content only) --------------------- */
.fade-container {
  opacity: 0;
  transition: opacity var(--mp-fade-duration) ease;
}

.fade-container.js-ready {
  opacity: 1;
}

.fade-container.fade-exit {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fade-container {
    transition: none;
    opacity: 1;
  }
}

/* =Content spacing for mobile ------------------------------------ */
.fade-container > .is-layout-constrained {
  margin: 0 12px;
}