@import url(https://fonts.bunny.net/css?family=im-fell-english:400,400i);
@font-face {
  font-family: 'Legend Sans';
  src: url('/fonts/LegendSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

nav {margin-bottom: 0vmin;}

.main-container-glyn {margin-top: -15vmin; background: 
  url('/comics/glyndwr-michael/texture-glyn.svg'),
  linear-gradient(180deg, #333333 0%, #333333 20%, #333333 40%, #5d5d5d 70%, #eeeeee 85%, #eeeeee 90%, #333333 100%);
  background-blend-mode: overlay;
  padding-bottom: 100px;}
header.header-glyn {width: 50%; margin: 0 auto; padding-top: 200px;}
article.comic-container-glyn {width: 80%; margin: 60px auto 0;}
header.header-glyn h1, header.header-glyn h2 {font-family: 'IM Fell English', serif; color: #dddddd;}
header.header-glyn h1 {font-size: 4rem;}
header.header-glyn h2 {text-align: justify; text-justify: inter-word;}
header p.metadata {color: #fff;;}
.icon-glyn {background-size: cover; width: 180px; height: 180px; border-radius: 50%; overflow: hidden;}
.icon-glyn img {width: 100%; height: 100%; object-fit: cover; display: block;}

.panel-glyn {
  position: relative;          /* Creates positioning context for children */
  aspect-ratio: 9 / 16;        /* Maintains your 9:16 ratio */
  overflow: hidden;            /* Clips text box to panel bounds */
}

.panel-glyn img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* Fills the container while keeping aspect ratio */
  display: block;              /* Removes inline spacing */
}

.caption-glyn {
  position: absolute;          /* Removes from normal flow, positions relative to .comic-panel */
  top: 16px;                /* 16px from top */
  left: 50%;                   /* Horizontal centering helper */
  transform: translateX(-50%); /* Completes the centering */
  background: white;
  border: 2px solid #333;
  padding: 12px 16px;
  width: 85%;
  max-width: 95%;              /* Prevents text box from hitting edges */
  font-family: 'Legend Sans', sans-serif;
  font-size: 1.4rem;
  line-height: 1.4rem;
}

.effect-glyn {
  position: absolute;
  font-family: 'Legend Sans', sans-serif;
  -webkit-text-stroke: 2px #000;
  text-stroke: 2px #000;
  
}

.effect-cough {
  font-size: 3.2rem;
  bottom: 100px;            
  left: 55%;  
  color: #fff;
  transform: rotate(15deg);
}

.effect-boom-1 {
  font-size: 3.2rem;
  top: 100px;            
  left: 55%;  
  color: #fff;
  transform: rotate(15deg);
}

.effect-boom-2 {
  font-size: 5rem;
  top: 300px;            
  left: 10%;  
  color: #fff;
  transform: rotate(-12deg);
}

.effect-boom-3 {
  font-size: 6.5rem;
  bottom: 30px;            
  left: 20%;  
  color: #fff;
  transform: rotate(12deg);
}

.effect-hiccup {
  font-size: 1.5rem;
  bottom: 220px;            
  right: 12%;  
  color: #fff;
  transform: rotate(15deg);
  text-stroke: 1px #000;
}

.bubble-glyn {
  position: absolute;
  width: 45%;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 25px;
  padding: 12px 16px;
  font-family: 'Legend Sans', sans-serif;
  font-size: 1.3rem;
  line-height: 1.2rem;
  text-align: center;
}

.bubble-1 {
  top: 20px;
  right: 20px;
  width: 66%;
}

.bubble-2 {
  top: 100px;
  left: 20px;
  width: 50%;
}

.bubble-3 {
  top: 160px;
  right: 40px;
  width: 66%;
}

.bubble-4 {
  top: 240px;
  left: 40px;
  width: 55%;
}

.caption-end {
  position: absolute;
  bottom: 10px;
  right: 20px;
  height: 1.6rem;
  background: white;
  border: 2px solid #333;
  padding: 5px 5px;
  font-family: 'legend sans', sans-serif;
  font-size: 1.3rem;
  line-height: 1rem;
}

@media only screen and (max-width: 576px){
.main-container-glyn {padding-bottom: 0;}
header.header-glyn {padding-top: 100px; width: 90%; margin: 0 auto;}
article.comic-container-glyn {width: 100%; margin: 0 auto;}
header.header-glyn h1 {font-size: 2.5rem;}
.panel-glyn {margin-bottom: 20px;}
.row {margin-bottom: 0 !important;}
.caption-glyn {font-size: 1.6rem; top: 45px;}
.effect-boom-2 {top: 390px;}
}