/*
 Theme Name:   Milo Lam Starter Theme
 Theme URI:    https://generatepress.com
 Description:  Milo Lam Starter Theme (A GeneratePress child theme)
 Author:       Milo Lam
 Author URI:   https://milolam.com
 Template:     generatepress
 Version:      1.0
*/
:root {
--fs-xs: clamp(0.79rem, -0.01vi + 0.79rem, 0.78rem);
--fs-s: clamp(0.89rem, 0.08vi + 0.87rem, 0.94rem);
--fs-m: clamp(1rem, 0.21vi + 0.96rem, 1.13rem);
--fs-l: clamp(1.13rem, 0.37vi + 1.05rem, 1.35rem);
--fs-xl: clamp(1.27rem, 0.59vi + 1.15rem, 1.62rem);
--h-1: clamp(3rem, 2.7273rem + 1.0909vw, 3.6rem);
--h-2: clamp(2.25rem, 2.0455rem + 0.8182vw, 2.7rem);
--h-3: clamp(1.875rem, 1.7045rem + 0.6818vw, 2.25rem);
--h-4: clamp(1.5rem, 1.3636rem + 0.5455vw, 1.8rem);
--h-5: clamp(1.25rem, 1.1364rem + 0.4545vw, 1.5rem);
--h-6: clamp(1.125rem, 1.0227rem + 0.4091vw, 1.35rem);
--padding-xxs: 12px;
--padding-xs: clamp(1rem, 0.857rem + 0.714vi, 1.5rem); /* side padding */
--padding-s: clamp(2rem, 1.714rem + 1.429vi, 3rem); /* small section */
--padding-m: clamp(3rem, 2.429rem + 2.857vi, 5rem); /* default section */
--padding-l: clamp(3.75rem, 2.679rem + 5.357vi, 7.5rem); /* large section */
--border-radius-default: 12px;
--border-radius-s: 3px;
--border-radius-button: 32px;
--gap-s: 0.5em;
--gap-m: 1em;
} 

h1, .fs-h1 {
	font-size: var(--h-1);
}

h2, .fs-h2 {
	font-size: var(--h-2);
}

h3, .fs-h3 {
	font-size: var(--h-3);
}

h4, .fs-h4 {
	font-size: var(--h-4);
}

h5, .fs-h5 {
	font-size: var(--h-5);
}

h6, .fs-h6 {
	font-size: var(--h-6);
}

p, .fs-p {
	font-size: var(--fs-m);
	font-family: var(--gp-font--inter);
}


h1, h2, h3, h4, h5, h6, .fs-h1, .fs-h2, .fs-h3, .fs-h4, .fs-h5, .fs-h6 {
	font-family: var(--gp-font--manrope);
	font-weight: 700;
	line-height: 1.2em;
	margin-bottom: 20px;
}

/* Grid container */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Logo image */
.brand-logo {
  max-height: 80px; /* ensures logos are uniform in height */
  width: auto;
  display: block;
}

.brand-title {
  font-size: var(--h-5);
  font-weight: 700;
  margin: 0;
}

.rank-math-breadcrumb p {
	margin: 0px;
	font-family: var(--gp-font--inter);
	font-size: var(--fs-s);
}

.rank-math-breadcrumb a {
	color: var(--base-600);
}

.rank-math-breadcrumb .last {
	color: var(--base-800);
	font-weight: 500;
}

.rank-math-breadcrumb a:hover {
	color: var(--base-800);
	text-decoration: underline;
}

.polylang-shortcode-switcher {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.polylang-shortcode-switcher li {
    list-style: none !important;
		font-family: var(--gp-font--manrope);
	  font-size: var(--fs-xs);
    margin: 0;
    padding: 0;
    display: inline-block;
}

.polylang-shortcode-switcher li a {
    text-decoration: none;
		border-radius: var(--border-radius-default);
    padding: 5px 8px;
    color: var(--base-600);
}

.polylang-shortcode-switcher li a:hover {
    color: var(--base-900);
    background-color: var(--base-200);
}

@media (prefers-reduced-motion: no-preference) {
  .animate {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    will-change: opacity, transform;
  }

  .animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable animation in the editor preview */
  .editor-styles-wrapper .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.oembed-container {
  border-radius: var(--border-radius-default);
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.oembed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Breadcrumb scroll wrapper */
.breadcrumb-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-width: 0; 
}

.breadcrumb-scroll .rank-math-breadcrumb,
.breadcrumb-scroll * {
    white-space: nowrap;
    max-width: 100%;
}

.breadcrumb-scroll::-webkit-scrollbar {
    height: 0;
}

@media (max-width: 768px) {
    .breadcrumb-scroll {
        mask-image: linear-gradient(90deg, var(--base-100) 90%, transparent 100%);
    }
}

.hide-if-empty:not(:has(.gb-loop-item)) {
    display: none !important;
}
