/*
Theme Name: Retrospect
Theme URI: 
Author: Automattic
Author URI: https://automattic.com
Description: A theme for casual photographers capturing the beauty of everyday life.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retrospect
Tags: blog, two-columns, wide-blocks, block-patterns, featured-images, full-site-editing, rtl-language-support, style-variations, threaded-comments, translation-ready

/* Remove auto-applied padding on headings when color is applied. */

h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background {
    padding: 0;
}

/* Set default line height for font size presets. */

.has-xx-large-font-size {
	line-height: 1;
}

/* Add a transition state for buttons. */

.wp-element-button {
    transition: border, background-color, color, box-shadow, opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(30px) brightness(120%);
}

/* Fields */

label,
.jetpack-field-label .rich-text.jetpack-field-label__input,
.wp-block-jetpack-contact-form-container .wp-block-jetpack-contact-form label {
    display: inline-block;
    font-size: var(--wp--preset--font-size--small);
    margin-bottom: 0.25em;
    font-weight: inherit;
}

textarea,
input:not([type=submit]):not([type=checkbox]),
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),
.jetpack-contact-form .jetpack-field .jetpack-field__input,
.jetpack-contact-form .jetpack-field .jetpack-field__textarea {
    backdrop-filter: saturate(1.075);
    background-color: transparent;
    border-color: currentColor;
    border-style: solid;
    border-radius: 6px;
    border-width: 1px;
    box-shadow: none;
    box-sizing: border-box;
    color: currentColor;
    filter: brightness(1.05);
    font-size: var(--wp--preset--font-size--small);
    font-weight: inherit;
    line-height: 1.5;
    min-height: 42px;
    padding: 0.8rem 1rem;
    width: 100%;
}

textarea:focus,
input:not([type=submit]):focus,
.wp-block-post-comments-form textarea:focus,
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]):focus {
    outline: 1px solid currentColor;
}

/* Jetpack Forms: Clean up errors */

.contact-form__error {
    font-size: 13px;
}

.contact-form__input-error {
	font-size: 13px;
    gap: 8px;
}

.contact-form__input-error .contact-form__warning-icon {
    border-width: 0;
}

/* Jetpack Forms: Animated block style tweaks */

.contact-form .is-style-animated .grunion-field-wrap.grunion-field-select-wrap .animated-label__label label,
.contact-form .is-style-animated .grunion-field-wrap .grunion-field.has-placeholder ~ .animated-label__label label,
.contact-form .is-style-animated .grunion-field-wrap .grunion-field:focus ~ .animated-label__label label,
.contact-form .is-style-animated .grunion-field-wrap .grunion-field:not(:placeholder-shown) ~ .animated-label__label label {
	opacity: 0.7;
    font-size: 11px;
}


/* Make sure footers have no margin. */

footer {
	margin-top: 0 !important;
}

/* Social Links: Better default color. */

.wp-block-social-links.is-style-logos-only li.wp-social-link {
	color: currentcolor;
}

.wp-block-social-links.is-style-logos-only .wp-social-link svg {
	height: 1em;
	width: 1em;
}

.wp-block-social-links.has-small-icon-size {
	font-size: 20px;
}

/* Move header core/navigation to the right on mobile. */

.order-0 {
	order: 0;
}

.order-1 {
	order: 1;
}

.grow-0 {
	flex-grow: 0;
}

.grow {
	flex-grow: 1;
}

@media (min-width: 600px) {

	.md\:order-0 {
		order: 0;
	}

	.md\:order-1 {
		order: 1;
	}

	.md\:grow-0 {
		flex-grow: 0;
	}

	.md\:grow {
		flex-grow: 1;
	}

}

.overflow-hidden {
	overflow: hidden;
}

/* Custom layout overrides for the news-style template. */
:root {
  --sidebar-bg: #2b2f33;
  --page-bg: #efefef;
  --card-bg: #ffffff;
  --text-dark: #1f1f1f;
  --text-muted: #666666;
  --line: rgba(255,255,255,0.18);
  --sidebar-width: clamp(380px, 28vw, 460px);
  --content-max: 1020px;
  --brand-font: "Georgia", "Times New Roman", serif;
  --body-font: "Trebuchet MS", "Gill Sans MT", "Gill Sans", "Calibri", sans-serif;
}

body {
  font-family: var(--body-font);
  color: var(--text-dark);
  background: var(--page-bg);
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}


.wp-site-blocks,
.wp-site-blocks > * {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.layout {
  width: 100%;
  max-width: none !important;
  background: var(--page-bg);
}

.layout .wp-block-columns {
  gap: 0 !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 100vh;
}

.sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  flex: 0 0 var(--sidebar-width) !important;
  width: var(--sidebar-width) !important;
  max-width: var(--sidebar-width) !important;
  min-width: var(--sidebar-width) !important;
  background: var(--sidebar-bg) !important;
  color: #fff !important;
  overflow: hidden !important;
  z-index: 50 !important;
  box-shadow: -100vmax 0 0 100vmax var(--sidebar-bg) !important;
}

.sidebar__inner {
  width: min(280px, 86%);
  margin: 0 auto;
  padding: 36px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  background: var(--sidebar-bg);
}

.sidebar__inner > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.brand {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand__title {
  margin: 0;
  font-family: var(--brand-font);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand__tagline {
  margin: 6px 0 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.85;
}

.sidebar__sep {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin: 6px 0 8px;
}

.sidebar__sep--brand {
  margin: 0 0 16px;
}

.sidebar__nav {
  width: 100%;
  text-align: left;
}

.sidebar__nav .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar__nav .wp-block-navigation-item__content {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar__nav .current-menu-item > .wp-block-navigation-item__content {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sidebar__nav .wp-block-navigation {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.sidebar__nav .wp-block-navigation__container,
.sidebar__nav .wp-container-core-navigation-is-layout-ce155fab {
  align-items: flex-start !important;
}

.sidebar__nav .wp-block-navigation-item__content {
  text-align: left;
}

.sidebar__nav .wp-block-categories {
  width: 100%;
}

.sidebar__nav .wp-block-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.sidebar__nav .wp-block-categories-list a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar__nav .wp-block-categories-list a:hover {
  text-decoration: underline;
}

.sidebar__nav .current-cat > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sidebar__sep-stack {
  display: none;
}

.sidebar__recent {
  width: 100%;
  text-align: left;
}

.sidebar__recent-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.sidebar__recent .wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__recent .wp-block-latest-posts li {
  margin-bottom: 8px;
}

.sidebar__recent .wp-block-latest-posts a {
  font-size: 12.5px;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
}

.sidebar__recent .wp-block-latest-posts a:hover {
  text-decoration: underline;
}

.content {
  flex: 1 1 auto !important;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
}

.content__inner {
  padding: 44px 56px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.content > .wp-block-template-part {
  margin-top: auto;
}

.card {
  width: 100%;
  max-width: var(--content-max);
  background: var(--card-bg);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  overflow: hidden;
}

.card .wp-block-post-featured-image {
  margin: 0 !important;
  max-width: none !important;
}

.card .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.card__body {
  padding: 26px 36px 34px !important;
  text-align: center;
}

.card__title,
.card .wp-block-post-title {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
}

.card .wp-block-post-title a {
  text-decoration: none;
}

.gh-post-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gh-post-meta p {
  margin: 0;
}

.gh-post-meta a {
  color: inherit;
  text-decoration: underline;
}

.card .wp-block-post-excerpt {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card .wp-block-post-excerpt__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  text-decoration: underline;
}

/* Cards spacing from plugin (cards only). */
.wp-block-post-template {
  list-style: none !important;
  margin: 0 !important;
  padding: 20px 0 0 0 !important;
}

.wp-block-post-template > li {
  margin: 0 0 32px 0 !important;
}

.wp-block-post-template .gh-post-card,
.wp-block-post-template .card {
  background: #fff !important;
  margin: 0 !important;
  display: block !important;
}

.gh-post-card__body,
.card__body {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.card .wp-block-post-content {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
  font-size: 15.5px;
  line-height: 1.8;
}

.card .wp-block-post-content * {
  text-align: left;
}

.card .wp-block-post-content p {
  margin: 16px 0 0;
}

.single .card .wp-block-post-title {
  font-size: clamp(36px, 4.5vw, 52px);
}

.single .card__body {
  padding: 32px 48px 24px !important;
}

.single .gh-post-meta {
  margin-bottom: 18px;
}

.single .card .wp-block-post-content {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.8;
}

.single .card .wp-block-post-content p + p {
  margin-top: 20px;
}

.post-footer {
  margin-top: 24px;
  padding: 18px 36px 26px;
  border-top: 1px solid #e3e3e3;
  text-align: left;
  font-size: 14px;
}

.post-footer .wp-block-post-terms {
  margin: 0 0 10px;
}

.post-footer__sep {
  margin: 12px 0;
  opacity: 0.4;
}

.post-footer .wp-block-post-navigation-link {
  margin-top: 6px;
}

.post-footer .wp-block-post-navigation-link a,
.post-footer__return a {
  text-decoration: underline;
}

.post-footer__return {
  margin: 10px 0 0;
}

.pagination {
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.pagination a {
  text-decoration: none;
}

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

.hamburger {
  display: none;
  width: 40px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  width: 100%;
}

.sidebar__inner > .mobile-panel {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .sidebar {
    position: sticky !important;
    top: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .sidebar__inner {
    width: 100%;
    padding: 0;
    align-items: stretch;
    position: relative;
    background: var(--sidebar-bg);
    overflow: visible;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-align: left;
    gap: 12px;
    background: var(--sidebar-bg);
  }

  .brand__text {
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    text-align: left;
    align-items: flex-start;
  }

  .brand__text a {
    display: inline-block;
  }

  .brand__text .wp-block-site-title,
  .brand__text .wp-block-site-tagline {
    text-align: left;
  }

  .brand__title {
    font-size: 18px;
  }

  .brand__tagline {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  .sidebar__sep--brand {
    display: none;
  }

  .mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sidebar-bg);
    padding: 0 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  body.menu-open .mobile-panel,
  .mobile-panel.is-open {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sidebar__nav {
    text-align: left;
    padding: 0 16px;
  }

  .sidebar__nav .wp-block-navigation__container {
    align-items: flex-start;
  }

  .mobile-panel .sidebar__nav,
  .mobile-panel .sidebar__recent {
    text-align: left;
  }

  .mobile-panel .wp-block-navigation {
    justify-content: flex-start !important;
  }

  .mobile-panel .wp-block-navigation__container {
    align-items: flex-start !important;
  }

  .mobile-panel .wp-block-navigation-item__content {
    text-align: left;
  }

  .sidebar__sep,
  .sidebar__recent {
    padding: 0 16px;
  }

  .sidebar__recent {
    text-align: left;
  }

  .content {
    height: auto;
    overflow: visible;
  }

  .content__inner {
    padding: 24px 16px 48px;
    gap: 24px;
  }

  .card {
    border-radius: 8px;
  }

  .card__body {
    padding: 20px 18px 26px !important;
  }

  .card .wp-block-post-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .pagination {
    margin-bottom: 24px;
  }

  .single .card__body {
    padding: 24px 22px 20px !important;
  }

  .single .card .wp-block-post-content {
    max-width: 100%;
    font-size: 15.5px;
  }

  .post-footer {
    padding: 16px 20px 22px;
  }
}
