/**
 * @file
 * local-theme.css for nudeyoganaked.com (Groovy+ for Drupal 11).
 *
 * Goal: reproduce the look of the live Drupal 8 Groovy+ theme
 * (color scheme "Fuchsia Light Purple").
 *
 *  1. Bootstrap 5 -> Bootstrap 4 look (container width, gutters, links)
 *  2. Bootstrap 4 class compatibility (classes stored in settings/content)
 *  3. D11 default styles reverted to the D8 values
 *  4. Media tabs: D11 "enriched" tabs -> D8 pills
 *  5. Rules ported from the live D8 local-theme.css
 */

/* =====================================================================
   1. Bootstrap 5 -> Bootstrap 4 look
   ===================================================================== */

/* BS5 adds an xxl breakpoint (1320px container), BS4 stopped at 1140px.
@media (min-width: 1400px) {
  .container {
    max-width: 1140px;
  }
} */

/* BS4 gutters were 30px, BS5 uses 24px. */
.container,
.container-fluid,
.row:not(.g-0):not(.gx-0) {
  --bs-gutter-x: 30px;
}

/* BS5 underlines links by default, BS4 did not. */
a {
  text-decoration: none;
}

/* =====================================================================
   2. Bootstrap 4 class compatibility
   Old BS4 utility classes may still be stored in migrated theme settings
   (e.g. layout containers "container-fluid pl-xl-5 pr-xl-5") or in body
   HTML. BS5 renamed them, so they are re-created here.
   ===================================================================== */
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.float-left { float: left !important; }
.float-right { float: right !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-normal { font-weight: 400 !important; }
@media (min-width: 992px) {
  .pl-lg-5 { padding-left: 3rem !important; }
  .pr-lg-5 { padding-right: 3rem !important; }
}
@media (min-width: 1200px) {
  .pl-xl-5 { padding-left: 3rem !important; }
  .pr-xl-5 { padding-right: 3rem !important; }
}

/* =====================================================================
   3. D11 default styles reverted to the D8 values
   ===================================================================== */

/* Block titles: D11 30px, D8 16px */
.block-title {
  font-size: 16px;
}

/* Colored text and separators used the light purple (secondary) in D8 */
.text--colored {
  color: var(--mt-color-secondary);
}
.separator:not(.separator--gray):not(.separator--white):not(.separator--black) {
  background: var(--mt-color-secondary);
}

/* Region and block spacing */
.subfooter__section .block {
  padding-bottom: 40px;
}
.featured-top__section {
  padding: 60px 0 40px;
}
.mt-view-header {
  margin-top: 0;
}

/* Icon features (large tiles) */
.paragraph--view-mode--mt-tile-large .field--name-field-mt-if-body {
  margin-bottom: 10px;
}

/* Tabs: D8 used a 2px bottom border */
.nav-tabs:not(.nav-tabs--enriched) {
  border-bottom-width: 2px;
}

/* Hero v2: D8 had no bottom padding below the hero content */
.block-mt-hero-v2 > .content,
.block-mt-hero-v2 > .content.one-column,
.block-mt-hero-v2 > .content.align-items-end {
  padding: 40px 0 0;
}
@media (min-width: 992px) {
  .block-mt-hero-v2 .two-columns .hero-column-first .field:last-child {
    margin-bottom: 70px;
  }
}

/* =====================================================================
   4. Media tabs ("The Art of Naked Yoga")
   D11 renders underlined "enriched" tabs with icons; D8 used plain pills.
   ===================================================================== */

/* No icons in front of the tab labels (D8 markup and D11 markup) */
.field--mt-media-tabs .nav li a.nav-link::before {
  content: none;
}

.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched {
  border-bottom: 0;
  margin: 0 -5px 45px;
  flex-wrap: wrap;
  justify-content: center;
}
.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li {
  min-width: 0;
  flex-grow: 0;
  margin: 0 5px 15px;
}
.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link {
  border: 0 !important;
  margin: 0;
  padding: 5px 12px;
  width: auto;
  font-size: inherit;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  background-color: transparent;
}
.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link.active,
.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link:hover,
.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link:focus {
  color: var(--mt-color-base-dark);
  background-color: transparent;
}
.region--light-typography .field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link {
  color: rgba(255, 255, 255, 0.5);
}
.region--light-typography .field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link.active,
.region--light-typography .field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link:hover,
.region--light-typography .field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link:focus {
  color: #ffffff;
}
.headings-wide-spacing-enabled .field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched li > a.nav-link {
  letter-spacing: 0.25em;
}
.field--mt-media-tabs:not(.mt-style-vertical) .nav-tabs.nav-tabs--enriched ~ .tab-content {
  padding-top: 0;
}

/* =====================================================================
   5. Ported from the live D8 local-theme.css
   ===================================================================== */
.site-name a {
  font-size: 40px;
}
.site-slogan {
  font-size: 16px;
}

/* Hero block in the banner. Check that the block ID is the same on D11. */
@media (min-width: 1200px) {
  #block-mt-business-groovyplus-heroblockimageleft .pt-xl-4 {
    padding-top: 0 !important;
  }
}
#block-mt-business-groovyplus-heroblockimageleft h1 {
  margin: 20px 0 0 0;
}
#block-mt-business-groovyplus-heroblockimageleft h4 {
  margin: 5px 0 10px 0;
}
#block-mt-business-groovyplus-heroblockimageleft .container {
  padding-left: 0;
}

/* More specific than in D8: the D11 core rules are stronger. */
.block-mt-hero-v2 .hero-column-first .field--name-field-mt-hero-v2-title.mt-typing-animation-enabled {
  min-height: 110px;
}

@media (min-width: 1200px) {
  #banner {
    min-height: 100vh;
  }
  .block-mt-hero-v2 > .content,
  .block-mt-hero-v2 > .content.one-column,
  .block-mt-hero-v2 > .content.align-items-end {
    padding: 10px 0 0;
  }
}
@media (max-width: 1199px) {
  #banner {
    min-height: 90vh;
  }
}

.page-node-type-mt-team-member .hero-top__section .col-auto,
.page-node-type-mt-team-member .hero-top__section .breadcrumb__items {
  margin: auto;
}
.page-node-type-mt-team-member .hero-top__section h1 {
  text-align: center;
}

.node--view-mode-full .field p:last-child {
  padding-bottom: 18px;
}

.region--light-typography h5 {
  color: #000;
}

/* Images */
.page-node-type-mt-album img {
  height: revert-layer;
}
.views-element-container .field--name-field-remote-image img,
.views-element-container .field--name-field-remote-image-wide img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 840 / 630;
}
.node--view-mode-mt-metro-tile .metro-tile__caption {
  z-index: 9999;
}
.view-mt-metro-tiles .field--type-remote-image,
.view-mt-metro-tiles .field--name-field-mt-alb-image {
  background-color: #000;
  border-radius: 5px;
}
.view-mt-metro-tiles .field--type-remote-image img,
.view-mt-metro-tiles .field--name-field-mt-alb-image img {
  opacity: 0.7;
}
