/* Elementor Template (loop Grid)
   ID: 22864
   This template is placed inside:
   https://galacticmedallion.com/space-launches/

   future-launch-card
   CSS ID: future-launch-card
   CSS Classes: future-launch-card */
#future-launch-card {
  /* Make the container a perfect square */
  width: 100%;            /* or whatever %/px you need */
  aspect-ratio: 1 / 1;    /* force 1:1 ratio */

  /* If you have inner content you want to flow top-to-bottom: */
  display: flex;
  flex-direction: column;

  /* (Optional) Keep the same card styling you had: */
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Title */
#future-launch-card #Mission1 {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
}

/* Payload name */
#future-launch-card #mission-name2 {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
}

/* Date */
#future-launch-card #missiondate {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
}

/* Location */
#future-launch-card #missionlocation {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
}



/* LAUNCH FOR GOOD (loop grid)
   CSS Class: main-futurelaunch-contianer
   CSS For main container: */
.main-futurelaunch-contianer {
    width: 420px!important;
    height: 510px!important;
    margin: 0px !important;
    margin: 0px !important;
}

@media screen and (max-width: 500px) {
  /* 3) Each loop item: no margin/padding, fixed size */
  .main-futurelaunch-contianer {
    width: 310px !important;
    height: 512px !important;
    padding: 0px !important;
    box-sizing: border-box !important;
    transform: none !important;
    margin: 0 auto !important;
  }
}
@media screen and (min-width: 501px) and (max-width: 766px) {
  .main-futurelaunch-contianer {
    width: 310px !important;
    height: 512px !important;
    padding: 0px !important;
    box-sizing: border-box !important;
    transform: none !important;
    margin: 0 auto !important;
  }
}

@media screen and (min-width: 767px) {
  .main-futurelaunch-contianer {
    width: 420px !important;
    height: 510px !important;
    margin: 0px !important;
    margin: 0px !important;
  }
}

/* Assigned container CSS Class: mission-container
   CSS ID: mission-container
   CSS Classes: mission-container */
#mission-container {
  display: block;
  width: fit-content;
}

@media screen and (min-width: 200px) and (max-width: 766px) {
  #mission-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    transform: scale(1);
    transform-origin: 0 0;
    width: 300px;
    margin: 10px 0 10px 0;
  }
  #mission-container > * {
    flex: 0 0 auto !important;
    margin: 0 3px !important;
  }
}
@media screen and (min-width: 767px) {
  #mission-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    transform: scale(1);
    transform-origin: 0 0;
    width: 420px;
    margin: 10px 0 5px 0;
  }
  #mission-container > * {
    flex: 0 0 auto !important;
    margin: 0 3px !important;
  }
}

/* CSS ID: Mission1
   CSS Classes: Mission1
   ACF Repeater Text 
   CSS For heading: */
#Mission1 {
  display: block;
  width: fit-content;
}

/* mission-spacer
   CSS Class: mission-spacer
   CSS ID: mission-spacer */
#mission-spacer {
  width: 2px;
  height: 20px;
}

/* CSS ID: mission-name2
   CSS Classes: mission-name2
   ACF Repeater Text 
   CSS: */
#mission-name2 {
  display: block;
  width: fit-content;
  vertical-align: baseline !important;
}

/* CSS ID: rocket-photo-contain
   CSS Classes: rocket-photo-contain */
#rocket-photo-contain {
  display: block;
  width: fit-content;
}
@media screen and (min-width: 200px) and (max-width: 766px) {
  #rocket-photo-contain  {
    position: relative;
    margin-left: 3.5%;
    margin-right: 3.5%;
  }
}
@media screen and (min-width: 767px) {
  #rocket-photo-contain  {
    position: relative;
    margin-left: 5%;
    margin-right: 5%;
  }
}

/* actual-image-rocket-futures
   CSS Class: actual-image-rocket-futures
   CSS ID: actual-image-rocket-futures
   Container
   CSS: */
#actual-image-rocket-futures img {
  display: block;
  width: fit-content;
  justify-content: center;
  display: cover;
}
@media screen and (min-width: 200px) and (max-width: 766px) {
  #actual-image-rocket-futures img {
    position: relative;
    display: cover;
    width: 290px;
    height: 200px;
  }
}
@media screen and (min-width: 767px) {
  #actual-image-rocket-futures img {
    position: relative;
    display: cover;
    width: 400px;
    height: 200px;
  }
}

/* date-place-container
   CSS Class: date-place-container
   CSS ID: date-place-container
   ACF Repeater Image
   CSS: */
:root {
  --date-left: 40px;
  --date-top: 10px;
}

/* 🖥️ Desktop (≥1367px) — appears first */
@media screen and (min-width: 1367px) {
  :root {
    --date-left: 20px;
    --date-top: 10px;
  }
}

/* 💻 Laptop (1024–1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  :root {
    --date-left: 20px;
    --date-top: 10px;
  }
}

/* 💊 Tablet (767–1023px) */
@media screen and (min-width: 767px) and (max-width: 1023px) {
  :root {
    --date-left: 20px;
    --date-top: 10px;
  }
}

/* 📱 Mobile (200–766px) */
@media screen and (min-width: 200px) and (max-width: 766px) {
  :root {
    --date-left: 10px;
    --date-top: 10px;
  }
}

/* ✅ Final applied rule */
.date-place-container {
  display: block;
  position: relative;
  width: fit-content;
  overflow: visible !important;
  top: var(--date-top);
  left: var(--date-left);
}

/* Missiondate
   CSS Class: Missiondate
   CSS ID: Missiondate
   ACF Repeater Text 
   CSS: */
#Missiondate {
  display: block;
  width: fit-content;
}

@media screen and (min-width: 200px) and (max-width: 766px) {
  #Missiondate {
    display: block;
    width: fit-content;
  }
}
@media screen and (min-width: 767px) {
  #Missiondate {
    display: block;
    width: fit-content;
  }
}

/* HTML-HELL
   CSS Class: HTML-HELL
   CSS ID: HTML-HELL
   HTML Code
   Code: */
#HTML-HELL {
  width: 0px;
  height:0px;
  visibility: hidden;
}

/* missionlocation
   CSS Class: missionlocation
   CSS ID: missionlocation
   ACF Repeater Text 
   CSS: */
#missionlocation {
  display: block;
  width: fit-content;
}
@media screen and (min-width: 200px) and (max-width: 766px) {
  #missionlocation {
    display: block !important;
    width: fit-content !important;
    position: relative !important;
    top: 7px;
  }
}
@media screen and (min-width: 767px) {
  #missionlocation {
    display: block !important;
    width: fit-content !important;
    position: relative !important;
    top: 7px;
  }
}

/* popup-button-wrapper
   CSS Class: popup-button-wrapper
   CSS ID: popup-button-wrapper
   Shortcode
   Shortcode Code:
   <div class="popup-button-wrapper">
     <div class="popup-button-inner">
       [launch_button_popup]
     </div>
   </div>

   CSS: */
:root {
  --button-scale: 1;
  --button-x: 0px;
  --button-y: 0px;
}

/* 🖥️ Desktop (≥1367px) */
@media screen and (min-width: 1367px) {
  :root {
    --button-scale: 0.9;
    --button-x: 20px;
    --button-y: 30px;
  }
}

/* 💻 Laptop (1024–1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  :root {
    --button-scale: .7;
    --button-x: 20px;
    --button-y: 35px;
  }
}

/* 💊 Tablet (767–1023px) */
@media screen and (min-width: 767px) and (max-width: 1023px) {
  :root {
    --button-scale: 0.9;
    --button-x: 20px;
    --button-y: 30px;
  }
}

/* 📱 Mobile (200–766px) */
@media screen and (min-width: 200px) and (max-width: 766px) {
  :root {
    --button-scale: .8;
    --button-x: 10px;
    --button-y: 20px;
  }
}

/* ✅ Outer container shrinkwrap */
.popup-button-wrapper {
  display: inline-block;
  line-height: 0;
  padding: 0;
  margin: 0;
}

/* ✅ Inner content scaling/positioning */
.popup-button-inner {
  display: inline-block;
  transform-origin: top left;
  transform: translate(var(--button-x), var(--button-y)) scale(var(--button-scale));
  z-index: 9;
}

/* space-company
   CSS Class: space-company
   CSS ID: space-company
   ACF Repeater Image 
   CSS: */
:root {
  --logo-width: 150px;
  --logo-height: 150px;
  --logo-x: 0px;
  --logo-y: 0px;
}

/* 🖥️ Desktop (≥1367px) */
@media screen and (min-width: 1367px) {
  :root {
    --logo-width: 150px;
    --logo-height: 150px;
    --logo-x: 260px;
    --logo-y: -10px;
  }
}

/* 💻 Laptop (1024–1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  :root {
    --logo-width: 125px;
    --logo-height: 125px;
    --logo-x: 290px;
    --logo-y: -7px;
  }
}

/* 💊 Tablet (767–1023px) */
@media screen and (min-width: 767px) and (max-width: 1023px) {
  :root {
    --logo-width: 100px;
    --logo-height: 100px;
    --logo-x: 310px;
    --logo-y: 22px;
  }
}

/* 📱 Mobile (200–766px) */
@media screen and (min-width: 200px) and (max-width: 766px) {
  :root {
    --logo-width: 100px;
    --logo-height: 100px;
    --logo-x: 205px;
    --logo-y: 17px;
  }
}

/* ✅ Final applied rule — no wrapper needed */
.space-company {
  display: inline-block;
  width: var(--logo-width);
  height: var(--logo-height);
  transform: translate(var(--logo-x), var(--logo-y));
  position: relative;
  line-height: 0;
  padding: 0;
  margin: 0;
}

/* Elementor Page: Space Launches
   https://galacticmedallion.com/space-launches/
   ID: 17651

   HR-ROCKETS
   CSS Class: HR-ROCKETS
   CSS ID: HR-ROCKETS
   Divider
   CSS:
   No assigned CSS */

/* loop-grid-container
   CSS Class: loop-grid-container
   CSS ID: loop-grid-container
   Container
   CSS: */
#loop-grid-container {
  overflow: hidden;
}

/* loop-grid-launch
   CSS Class: loop-grid-launch
   CSS ID: loop-grid-launch
   Loop Grid
   CSS: */
@media screen and (min-width: 300px) and (max-width: 509px) {
  /* 3) Each loop item: no margin/padding, fixed size */
  #loop-grid-launch .e-loop-item[data-elementor-type="loop-item"] {
    width: 317px;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}

@media screen and (min-width: 510px) and (max-width: 1024px) {
  /* 3) Each loop item: no margin/padding, fixed size */
  #loop-grid-launch .e-loop-item[data-elementor-type="loop-item"] {
    width: 420px !important;
    height: 510px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}
/* ===========================================
   Desktop only: card-by-card fade-in ≥1024px
   =========================================== */
@media screen and (min-width: 1024px) {
  /* 1) Initial state: cards are invisible & shifted */
  #loop-grid-launch .e-loop-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  /* 2) in-view state: fade up into place */
  #loop-grid-launch .e-loop-item.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* Editor override so you can still see them in Elementor */
  body.elementor-editor-active #loop-grid-launch .e-loop-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==================================================
   Mobile & tablet: cards are always visible <1024px
   ================================================== */
@media screen and (max-width: 1023px) {
  #loop-grid-launch .e-loop-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important; /* disable any leftover transitions */
  }
}
@media screen and (min-width: 1024px) {
  /* 1) Initial state & fade-in (you already have these) */
  #loop-grid-launch .e-loop-item {
    opacity: 0;
    transform: translateY(20px) scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  /* 2) in-view state */
  #loop-grid-launch .e-loop-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* 3) Hover grow effect */
  #loop-grid-launch .e-loop-item.in-view:hover {
    transform: translateY(0) scale(1.05);
  }

  /* Editor override */
  body.elementor-editor-active #loop-grid-launch .e-loop-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* launch-datetime
   CSS Class: launch-datetime
   CSS ID: launch-datetime
   HTML Code
   code: */
#launch-datetime {
  width: 0px;
  height: 0px;
}
#the-rocket-grid {
  overflow: visible;
}

/* rocket-shot
   CSS Class: rocket-shot
   CSS ID: rocket-shot
   Shortcode
   Shortcode Code:
   [launch_image]

   CSS: */
/*── Editor: show a square box of 300px ───────────────────────────────────*/
.elementor-editor-active #rocket-shot {
  height: 300px !important;
  overflow: visible;
  /* no aspect-ratio here */
}

/*── Front-end: padding-bottom square hack ────────────────────────────────*/
#rocket-shot {
  position: relative;
  width: 100%;
  height: 0;               /* collapse height */
  padding-bottom: 100%;    /* 1:1 aspect ratio */
  overflow: hidden;
}

/*── Content: absolutely cover inside ────────────────────────────────────*/
#rocket-shot img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.4s ease;
}
#rocket-shot:hover img {
  transform: translate(-50%, -50%) scale(1.05);
}
@media (min-width: 300px) and (max-width: 767px) {
  /*── Editor: show a square box of 300px ───────────────────────────────────*/
  .elementor-editor-active #rocket-shot {
    height: 300px !important;
    /* no aspect-ratio here */
  }

  /*── Front-end: padding-bottom square hack ────────────────────────────────*/
  #rocket-shot {
    position: relative;
    width: 100%;
    height: 0;               /* collapse height */
    padding-bottom: 100%;    /* 1:1 aspect ratio */
    overflow: visible;
  }

  /*── Content: absolutely cover inside ────────────────────────────────────*/
  #rocket-shot img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.4s ease;
    overflow: visible;
  }
  #rocket-shot:hover img {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* wsl_name_line1
   CSS Class: wsl_name_line1
   CSS ID: wsl_name_line1
   ACF Field (Launch 1 Name Line 1)
   CSS:
   No assigned CSS */

/* Launch-line-2
   CSS Class: Launch-line-2
   CSS ID: Launch-line-2
   ACF Repeater Text 
   CSS: */
#Launch-line-2 .shrink-wrap {
  /* 1) shrink‐wrap via inline‐level flexbox */
  display: inline-flex;      /* or inline-block */

  /* 2) ensure it only grows as big as its children */
  width: fit-content;        /* fallback for block‐level */
  height: fit-content;

  /* 3) include padding/border in that calculation */
  box-sizing: border-box;

  /* 4) optional: spacing/alignment */
  gap: 0.5rem;               /* only works with flex */
  align-items: center;       /* vertically center items */
}
@media (min-width: 300px) and (max-width: 767px) {
  #Launch-line-2 .shrink-wrap {
    /* 1) shrink‐wrap via inline‐level flexbox */
    display: inline-flex;      /* or inline-block */

    /* 2) ensure it only grows as big as its children */
    width: fit-content;        /* fallback for block‐level */
    height: fit-content;

    /* 3) include padding/border in that calculation */
    box-sizing: border-box;

    /* 4) optional: spacing/alignment */
    gap: 0.5rem;               /* only works with flex */
    align-items: center;       /* vertically center items */
  }
}

/* launch-time
   CSS Class: launch-time
   CSS ID: launch-time
   Shortcode
   Shortcode Code:
   [launch_time]

   CSS: */
/* ──────────────────────────────────────────────────
   Base Styles for .launch-time
────────────────────────────────────────────────── */
.launch-time {
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  box-sizing: border-box;
  gap: 0.5rem;
  align-items: center;

  /* Base Typography */
  font-family: "barlow condensed", sans-serif;
  color: #758595;
  font-size: 2em;
  line-height: 1em;
  font-weight: 600;
  letter-spacing: -1px;

  margin: 0;
  padding: 0;
  transition: none;
}

/* 🖥️ Desktop (≥1367px) */
@media screen and (min-width: 1367px) {
  .launch-time {
    font-size: 2em;
    line-height: 1em;
  }
}

/* 💻 Laptops (1024–1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  .launch-time {
    font-size: 1.6em;
    line-height: 1em;
    letter-spacing: -0.5px;
  }
}

/* 💊 Tablets (767–1023px) */
@media screen and (min-width: 767px) and (max-width: 1023px) {
  .launch-time {
    font-size: 1.4em;
    line-height: 1em;
    letter-spacing: -0.5px;
  }
}

/* 📱 Mobile (200–766px) */
@media screen and (min-width: 200px) and (max-width: 766px) {
  .launch-time {
    font-size: 1.63em;
    line-height: 1em;
    letter-spacing: -0.2px;
  }
}

/* 🛠️ Fallback style for dynamic text replacements */
.launch-time[data-fallback] {
  font-style: italic;
  opacity: 0.6;
}

/* space_company_logo
   CSS Class: space_company_logo
   CSS ID: space_company_logo
   Shortcode
   Shortcode Code:
   [acf_img field="space_company_logo"]
   CSS:
   No assigned CSS */

/* launch_countdown
   CSS Class: launch_countdown
   CSS ID: launch_countdown
   HTML Code
   Code:
   <!-- 1) Just place the shortcode: -->
   [launch_countdown]

   <!-- 2) If you still want to show the lift-off date somewhere, use [launch_time]:
        LIFT OFF: [launch_time]
   -->

   CSS: */
/* 🖥️ Desktop (≥1367px) */
@media screen and (min-width: 1367px) {
  #countdown {
    display: flex !important;
    gap: 1.7rem !important;
    justify-content: flex-start !important;
    align-items: center !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #countdown .count-segment {
    text-align: center;
  }

  #countdown .number {
    display: block;
    font-size: 5rem !important;
    font-weight: 200 !important;
    color: #5A0000 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  #countdown .label {
    display: block;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #808080 !important;
    text-transform: uppercase;
    margin-top: 0 !important;
  }
}

/* 💻 Laptop (1024–1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  #countdown {
    display: flex !important;
    gap: 1.4rem !important;
    justify-content: flex-start !important;
    align-items: center !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #countdown .count-segment {
    text-align: center;
  }

  #countdown .number {
    display: block;
    font-size: 4.6rem !important;
    font-weight: 200 !important;
    color: #5A0000 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  #countdown .label {
    display: block;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #808080 !important;
    text-transform: uppercase;
    margin-top: 0 !important;
  }
}

/* 💊 Tablet (767–1023px) */
@media screen and (min-width: 767px) and (max-width: 1023px) {
  #countdown {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
    align-items: center !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #countdown .count-segment {
    text-align: center;
  }

  #countdown .number {
    display: block;
    font-size: 4.3rem !important;
    font-weight: 200 !important;
    color: #5A0000 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  #countdown .label {
    display: block;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #808080 !important;
    text-transform: uppercase;
    margin-top: 0 !important;
  }
}

/* 📱 Mobile (200–766px) */
@media screen and (min-width: 200px) and (max-width: 766px) {
  #countdown {
    display: flex !important;
    gap: 0.9rem !important;
    justify-content: flex-start !important;
    align-items: center !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
  }

  #countdown .count-segment {
    text-align: center;
  }

  #countdown .number {
    display: block;
    font-size: 5.7em !important;
    font-weight: 200 !important;
    color: #5A0000 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  #countdown .label {
    display: block;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #808080 !important;
    text-transform: uppercase;
    margin-top: 0 !important;
  }
}

/* wsl_status
   CSS Class: wsl_status
   CSS ID: wsl_status
   ACF Field (Launch 1 Status) 
   CSS:
   No assigned CSS */

/* about-this-launch
   CSS Class: about-this-launch
   CSS ID: about-this-launch
   Heading
   CSS: */
.about-this-launch {
  display: inline-block;       /* shrinkwraps to content */
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: content-box !important;
  line-height: 1 !important;
}

/* wsl_mission_description
   CSS Class: wsl_mission_description
   CSS ID: wsl_mission_description
   Text Editor
   ACF Field (Launch 1 Description) 
   CSS:
   No assigned CSS */

/* wsl_mission_description
   (note ChatGPT AI Summery)
   CSS Class: none
   CSS ID: none
   shortcode
   Shortcode code:
   [launch_weather_widget]
   CSS: */
.weather-box {
  background-color: #758595;
  padding: 2rem;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  border-radius: 25px
}
.weather-header {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
}
.weather-main {
  display: flex; gap: 1.5rem; align-items: center;
  margin-bottom: 2rem;
}
.weather-icon img {
  width: 64px;
}
.weather-info .weather-temp {
  font-size: 2.5rem; font-weight: 400; line-height:1;
  margin-bottom:.25rem;
}
.weather-info .weather-desc {
  font-size:1rem; margin-bottom:.25rem;
}
.weather-info .weather-location {
  font-size:.875rem; opacity:.9;
}
.weather-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap:1rem;
}
.weather-cell {
  background:#fff;
  color:#333;
  padding-top: 10px;
  padding-bottom: 20px;
  text-align:center;
  border-radius: 9px
}
.weather-cell-label {
  font-size: .9rem;
  text-transform:uppercase;
  opacity:.6;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.weather-cell-value {
  font-size:1.25rem;
  font-weight:700;
}

/* HTML-GOAway
   CSS Class: HTML-GOAway
   CSS ID: HTML-GOAway
   HTML Code
   Code:
   none
   CSS: */
/* ──────────────────────────────────────────────────────────
   Launch Weather Widget Styles (weather-widget.css)
────────────────────────────────────────────────────────────*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600&family=Barlow+Condensed:wght@400;600&display=swap');

/*──────────────────────────────────────────────────────────
  Base widget container
──────────────────────────────────────────────────────────*/
#launch-weather-widget {
  --bg: #8694A1;
  --fg: #fff;
  --accent: #444;
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  padding: 1.2em;
  max-width: 750px;
  min-width: 320px;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/*──────────────────────────────────────────────────────────
  Top Row: Header (dot + title)
──────────────────────────────────────────────────────────*/
#launch-weather-widget .weather-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8em;
}

/* Icon (“dot”) on far left */
#launch-weather-widget .weather-header .weather-dot {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: url("https://galacticmedallion.com/wp-content/uploads/2025/06/small-galactic-medallion-logo-white.png")
              no-repeat center/contain;
  border-radius: 0;
  margin-right: 0.6em;
}

/* Main header text */
#launch-weather-widget .weather-header .widget-header {
  font-size: 1.5em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-top: -20px;
  margin-bottom: -20px;
  display: grid;
}

/*──────────────────────────────────────────────────────────
  Middle Row: Icon + Info
──────────────────────────────────────────────────────────*/
#launch-weather-widget .weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0em;
  margin-bottom: 0em;
}

/* Weather icon container (fixed width) */
#launch-weather-widget .weather-icon {
  flex: 0 0 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image scales proportionally inside container */
#launch-weather-widget .weather-icon img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text info (temperature, description, location) */
#launch-weather-widget .weather-info {
  margin-left: 1em;
  text-align: left;
}

#launch-weather-widget .weather-temp {
  font-size: 1.6em;
  font-weight: 600;
  color: #fff;
}

#launch-weather-widget .weather-desc {
  font-size: 1.2em;
  text-transform: capitalize;
  margin-top: 0.2em;
  color: #fff;
}

#launch-weather-widget .weather-location {
  font-size: 1em;
  margin-top: 0.2em;
  color: #fff;
}

/*──────────────────────────────────────────────────────────
  Bottom Grid: Details (Forecast, Clouds, Wind, Precip)
──────────────────────────────────────────────────────────*/
#launch-weather-widget .weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
  margin-top: 1em;
}

#launch-weather-widget .detail {
  background: #fff;
  border-radius: 0;
  padding: 0.6em;
  text-align: center;
}

#launch-weather-widget .detail .label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1em;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 0.3em;
  letter-spacing: 0.05em;
}

#launch-weather-widget .detail .value {
  font-family: 'Barlow', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent);
}

#launch-weather-widget .detail.clouds .value {
  font-size: 1.6em;
}

/*──────────────────────────────────────────────────────────
  Responsive adjustments for screens ≥ 1200px
  (Left‐justify top two rows)
──────────────────────────────────────────────────────────*/
@media screen and (min-width: 1200px) {
  /* Top row: left‐aligned */
  #launch-weather-widget .weather-header {
    justify-content: flex-start;
  }
  /* Middle row: left‐aligned */
  #launch-weather-widget .weather-main {
    justify-content: flex-start;
  }
}

/*──────────────────────────────────────────────────────────
  Responsive adjustments for screens ≤ 1035px
──────────────────────────────────────────────────────────*/
@media screen and (max-width: 1035px) {
  /* Left-justify header */
  #launch-weather-widget .weather-header {
    justify-content: flex-start;
  }
  /* Reset negative margins on widget-header */
  #launch-weather-widget .weather-header .widget-header {
    margin-top: 0;
    margin-bottom: 0;
  }
  /* Left-justify middle row */
  #launch-weather-widget .weather-main {
    justify-content: flex-start;
  }
  /* Force icon width to 90px */
  #launch-weather-widget .weather-icon img {
    width: 90px;
    height: auto;
  }
}

/*──────────────────────────────────────────────────────────
  Responsive adjustments for screens ≤ 563px
──────────────────────────────────────────────────────────*/
@media screen and (max-width: 563px) {
  /* Shrink overall padding slightly */
  #launch-weather-widget {
    padding: 1em;
  }

  /* Stack top row items vertically */
  #launch-weather-widget .weather-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #launch-weather-widget .weather-header .weather-dot {
    margin-right: 0;
    margin-bottom: 0.5em;
  }

  #launch-weather-widget .weather-header .widget-header {
    font-size: 1.3em;
  }

  /* Middle row stacks icon + info vertically */
  #launch-weather-widget .weather-main {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0em;
  }

  /* Raise icon slightly */
  #launch-weather-widget .weather-icon {
    margin-bottom: -20px;
  }

  /* Center text info under icon */
  #launch-weather-widget .weather-info {
    margin-left: 0;
    margin-top: 0.6em;
    text-align: center;
  }

  #launch-weather-widget .weather-temp {
    font-size: 1.4em;
  }

  #launch-weather-widget .weather-desc {
    font-size: 1.1em;
  }

  #launch-weather-widget .weather-location {
    font-size: 0.9em;
  }

  /* Bottom grid becomes a single column */
  #launch-weather-widget .weather-details {
    grid-template-columns: 1fr;
  }

  #launch-weather-widget .detail {
    padding: 0.8em 0.5em;
  }

  #launch-weather-widget .detail .label {
    font-size: 0.9em;
  }

  #launch-weather-widget .detail .value {
    font-size: 1.2em;
  }
}

/*──────────────────────────────────────────────────────────
  Additional tweaks for screens ≤ 500px
──────────────────────────────────────────────────────────*/
@media screen and (max-width: 500px) {
  /* Further shrink icon container and image */
  #launch-weather-widget .weather-icon {
    flex: 0 0 80px;
  }
  #launch-weather-widget .weather-icon img {
    max-width: 80px;
  }

  #launch-weather-widget .weather-header .widget-header {
    font-size: 1.2em;
    display: flex;
  }

  #launch-weather-widget .detail .label {
    font-size: 1em;
  }

  #launch-weather-widget .weather-temp {
    font-size: 1.3em;
  }
  #launch-weather-widget .weather-desc {
    font-size: 1em;
  }

  #launch-weather-widget .detail .label {
    font-size: 0.8em;
  }
  #launch-weather-widget .detail .value {
    font-size: 1.1em;
  }
}

/* local-time
   CSS Class: local-time
   CSS ID: local-time
   Heading
   ACF Field (Launch 1 Local Time) 
   CSS: */
.local-time {
  display: inline-block;       /* shrinkwraps to content */
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: content-box !important;
  line-height: 1 !important;
  vertical-align: top;
}

/* launch_UTC-time_header
   CSS Class: launch_UTC-time_header
   CSS ID: launch_UTC-time_header
   Heading
   CSS: */
#launch_UTC-time_header {
  display: inline-flex;      /* shrink-wrap & flex layout */
  width: fit-content;        /* only as wide as the content */
  height: fit-content;       /* only as tall as the content */
  box-sizing: border-box;    /* include padding/border in that sizing */
  gap: 0.5rem;               /* space between any child items */
  align-items: center;       /* vertically center items */
}

/* luanch-pad
   CSS Class: luanch-pad
   CSS ID: luanch-pad
   Container
   CSS: */
.luanch-pad {
  width: fit-content;
  margin: 0;
  padding: 0;
  display: block;          
  max-width: none;
  box-sizing: content-box;
}

/* wsl_pad_full
   CSS Class: wsl_pad_full
   CSS ID: wsl_pad_full
   ACF Field (Launch 1 Location (Full)) 
   CSS:
   none */

/* launching-from
   CSS Class: launching-from
   CSS ID: launching-from
   Heading
   CSS:
   none */

/* orbit_type_container
   CSS Class: orbit_type_container
   CSS ID: orbit_type_container
   Container 
   CSS: */
.orbit_type_container {
  width: fit-content;
  margin: 0;
  padding: 0;
  display: block;           /* or inline-block, depending on context */
  max-width: none;
  box-sizing: content-box;
}

/* orbit_type
   CSS Class: orbit_type
   CSS ID: orbit_type
   ACF Field (Launch 1 Orbit Type) 
   CSS: */
.orbit_type {
  width: fit-content;
  margin: 0;
  padding: 0;
  display: block;           /* or inline-block, depending on context */
  max-width: none;
  box-sizing: content-box;
}

/* mission-name
   CSS Class: mission-name
   CSS ID: mission-name
   Container
   CSS: */
.mission-name {
  width: fit-content;
  margin: 0;
  padding: 0;
  display: block;           /* or inline-block, depending on context */
  max-width: none;
  box-sizing: content-box;
}

/* wsl_name_line2
   CSS Class: wsl_name_line2
   CSS ID: wsl_name_line2
   ACF Field (Launch 1 Name Line 2) 
   CSS:
   none */

/* wsl_crewed
   CSS Class: wsl_crewed
   CSS ID: wsl_crewed
   ACF Field (Launch 1 Is Crewed) 
   CSS:
   none */

/* wsl_spacecraft_type
   CSS Class: wsl_spacecraft_type
   CSS ID: wsl_spacecraft_type
   ACF Field (Launch 1 Spacecraft Type) 
   CSS:
   none */
   /* ───────────────────────────────────────────────────────────────
   “See this Launch in Person” Button Styles
─────────────────────────────────────────────────────────────── */

/* 1) Button container (HTML markup for the loop grid) */
.ken_register_button-container {
  /* (no explicit styles needed here; it simply wraps the <a>.) */
}

/* 2) Button flex box & transitions */
.ken_register_button-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 0px 10px;
  border: 1px solid #999;
  background: #5A0000;
  text-decoration: none;
  aspect-ratio: 300 / 80;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* 3) Wipe‐over effect on hover */
.ken_register_button-box::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: top 0.5s ease-in-out;
  z-index: 0;
}
.ken_register_button-box:hover::before {
  top: 0;
}

/* 4) Left‐icon block */
.ken_register_button-left-icon {
  flex-shrink: 0;
  margin-right: 8px;
  width: 45px;
  height: 45px;
  background: center/contain no-repeat
    url('https://galacticmedallion.com/wp-content/uploads/2025/05/button-logo-galmed.png');
  transition: background-image 0.5s ease-in-out;
  z-index: 1;
}
.ken_register_button-box:hover .ken_register_button-left-icon {
  background-image: url('https://galacticmedallion.com/wp-content/uploads/2025/05/button-logo-galmed_hover_red.png');
}

/* 5) Text block */
.ken_register_button-content {
  flex-grow: 1;
  text-align: right;
  z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}
.ken_register_button-register-text {
  display: block;
  font-weight: 400;
  font-size: 1.3em;
}
.ken_register_button-deadline-text {
  display: block;
  font-weight: 300;
  font-size: 0.9em;
  margin-top: 0.1em;
}

/* 6) Triangle icon */
.ken_register_button-triangle-icon {
  flex-shrink: 0;
  margin-left: 0.5rem;
  fill: #ffffff;
  z-index: 1;
  transition: fill 0.5s ease-in-out;
}

/* 7) Hover state: swap text/icon color */
.ken_register_button-box:hover .ken_register_button-content {
  color: #5A0000 !important;
}
.ken_register_button-box:hover .ken_register_button-triangle-icon {
  fill: #5A0000 !important;
}
#Button_just_for_latest_launch_below .e-con-inner {
  flex: 0 0 auto !important;
  overflow: visible !important;
}
.ken_register_button-box {
  width: 109%;
}
/* Shrink-wrap all four dynamic widgets inside #future-launch-card */
#future-launch-card #Mission1,
#future-launch-card #mission-name2,
#future-launch-card #missiondate,
#future-launch-card #missionlocation {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
}

