
.fullwidthimage {
    width: 100%;
 max-height: 60vh;
    height: 60vh;  
    overflow: hidden;
}

/* Apply cropping to the actual image */
.fullwidthimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
      display: block;
}

.fullwidthimage.align-top img {
    object-position: top center;
}

.fullwidthimage.align-center img {
    object-position: center center;
}

.fullwidthimage.align-bottom img {
    object-position: bottom center;
}

.fullwidthimage .caption-parent {
    position: relative;
  height: 100%;        /* ← fill the parent */
    width: 100%;
    overflow: hidden;
}


.optionalcaption {
  padding-left: 10%;
}
/*banner*/
.cta-div1 {
    display: flex;
  flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}
.cta-div2 {
  display: flex;
  flex: 1;
}

.cta-header h2{ font-size:1.8em; line-height: 1.8em; margin-bottom: 5px; margin-top: 10px;}
.cta-main p {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2em;
    margin-bottom: 5px;
    margin-top: 5px;
}
.cta-footer p {font-size:1.2em; font-weight: 300; line-height: 1.2em; margin-bottom: 5px; margin-top: 5px;}

.banner-cta {
    align-items: flex-start;
    display: flex
;
    flex-direction: row;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    width: 100%;
    z-index: 2;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-left: 5px;
    padding-right: 5px;
}

.cta-button-container {
    width: 100%;
  padding-top: 20px;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-end;
}

.cta-button-container a.download-link.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 10px;
    border-radius: 22px;
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 200px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 700;
      text-decoration: none;
    line-height: 110%;
}

.ctasvr {
  height: 50px;
        display: flex;
    align-items: center;
}

.ctasvr svg {
    max-height: 100%;
    height: 100%;
    width: auto;
}

@media (max-width: 710px) {

.banner-cta {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 20px;
    max-width: 100%;
    position: relative;
    width: 100%;
    z-index: 2;
  padding-top: 10px;
  padding-bottom: 5px;
}
.cta-button-container {
    padding-top: 0px;
    align-items: center;
  padding: 10px;
}

 }
 
.infogridtitle
{margin: 20px;}

.infogridsubtitle
{margin-left: 5%;}

/*banner*/
.links-button-container a.download-link.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: 60px;
    height: 60px;
    padding: 10px 20px;
    border-radius: 42px;
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 100%;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--btn-bg, #eee);
    color: var(--btn-text, #111);
}

.links-button-container {
    display: flex
;
    flex-wrap: wrap;
    gap: 22px;
}

.link-banner .button {
    display: flex
;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 42px;
    text-decoration: none;
    z-index: 5;
    line-height: 110%;
}
.banner-social-and-button {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1200px;
	width: 100%;
}
.banner-social-links {
	flex: 1;
}
.banner-social-links .social-icons {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	list-style: none;
	padding: 0;
}
.banner-social-links .social-icons li {
	display: inline-block;
}

.button-center {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
}
.button-container {
	flex-shrink: 0;
	z-index: 9;
}

.link-banner .banner-text {
    margin-bottom: 20px;
    }

.contact-banner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: 20px;
	position: relative;
	width: 100%;
	min-height: 30vh;
}

.contact-banner .banner-content {
    align-items: flex-start;
    display: flex;
    padding: 30px 0px 0px 0px;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.contact-banner .banner-text {
    flex: 1;
    text-align: left;
    margin-bottom: 1px;
    margin-top: 0px;
    padding-right: 25%;
}
.contact-banner .banner-text p {
	margin-bottom: 2px;
}
.contact-banner .button {
border-radius: 12px;
    display: flex;
    flex: 1 1 calc(50% - 20px);
   padding: 10px 20px 10px 20px;
    text-decoration: none;
    z-index: 5;
    justify-content: center;
    align-items: center;
    min-width: 222px;
}


.link-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 0px;
    padding-bottom: 20px;
}


.headline-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 0px;
}


.link-banner .banner-content {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
	max-width: 1200px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.link-banner .banner-text {
	flex: 1;
	text-align: left;
	margin-bottom: 1px;
	margin-top: 0px;
	padding-right: 160px;
	padding-left: 20px;
}
.link-banner .banner-text p {
	margin-bottom: 2px;
}

.link-banner .button {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 22px;
    text-decoration: none;
    z-index: 5;
    line-height: 110%;
}

.links-button-container {
    width: 97%;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    align-items: stretch;
}

.contact-banner {
    position: relative;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right center;
    padding: 20px;
    overflow: hidden;
}

.contact-banner .banner-content {
    position: relative;
    z-index: 5; }


/* When we add .visible, fade to your desired 0.5 */
.contact-banner.visible::before {
  opacity: 0.5;
}



/* 1) Base rule for every banner pseudo-element */
.contact-banner::before {
  content: '';
  position: absolute;
  /* allow override of top/bottom */
  top: var(--banner-top, 0);
  bottom: var(--banner-bottom, auto);
  left: 0;
  width: 100%;
  height: 100%;
  /* image & scale come from custom props */
  background-image: var(--banner-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
   opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
  transform: scale(var(--banner-scale, 1));
  transform-origin: right center;
}

/* 2) Per-banner overrides: just set the props that differ */
.contact-banner.hills {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/hills_white.svg');
  --banner-scale: 1;
}
.contact-banner.bird {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/bird_white.svg');
  --banner-scale: 1.2;
}
.contact-banner.flowers {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/flowers_white.svg');
  --banner-scale: 1;
}
.contact-banner.heritage {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/heritage_white.svg');
  --banner-scale: 1;
}
.contact-banner.stones {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/stones_white.svg');
  --banner-scale: 1;
}
.contact-banner.crops {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/crops_white.svg');
  --banner-scale: 1;
}
.contact-banner.plant {
  /* move the graphic down to the bottom */
  --banner-top: auto;
  --banner-bottom: 0;
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/plant_white.svg');
  --banner-scale: 1;
}
.contact-banner.river {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/river_white.svg');
  --banner-scale: 1.2;
}
.contact-banner.signpost {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/signpost_white.svg');
  --banner-scale: 1;
}
.contact-banner.dog {
  --banner-image: url('/wp-content/themes/rockhopper/assets/images/dog_white.svg');
  --banner-scale: 1;
}

/* Content inside the banner stays above the transparent image */


@media (max-width: 768px) {
.contact-banner.hills, 
.contact-banner.bird,
.contact-banner.flower,
.contact-banner.flowers,
.contact-banner.heritage,
.contact-banner.crops,
.contact-banner.stones,
.contact-banner.plant,
.contact-banner.signpost,
.contact-banner.dog  {
  --banner-scale: 0.7; 
}
.contact-banner::before {
  background-position: right bottom;
        transform-origin: right bottom;}

}

.contact-banner.river::before {
    background-position: 160%;
}


/* 2 columns on small screens */
@media (max-width: 599px) {
  .links-button-container a,
  .links-button-container span {
    flex: 0 0 calc((100% - 1 * 12px) / 2);
    text-align: center;
  }

.link-banner .banner-text {
  padding-right: 10px;
  padding-left: 10px;
}


}

/* 3 columns on small/medium screens */
@media (min-width: 600px) and (max-width: 899px) {
  .links-button-container a,
  .links-button-container span {
    flex: 0 0 calc((100% - 2 * 12px) / 3);
    text-align: center;
  }
}

/* 4 columns on medium/large screens */
@media (min-width: 900px) and (max-width: 1199px) {
  .links-button-container a,
  .links-button-container span {
    flex: 0 0 calc((100% - 3 * 12px) / 4);
    text-align: center;
  }
}

/* 5 columns on full width */
@media (min-width: 1200px) {
  .links-button-container a,
  .links-button-container span {
    flex: 0 0 calc((100% - 4 * 12px) / 5);
    text-align: center;
  }
}

/* Hide content in dummy items */
.dummy {
  visibility: hidden;
}
/* Container: flowing row of buttons */
.links-button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;              /* replaces the spacer <span> */
}

/* Hide/remove the old spacer spans if they still exist */
.links-button-container > span { display: none; }

/* Buttons: fixed height, comfy padding, auto width with min, truncate long labels */
.links-button-container a.download-link.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 80px;         
  padding: 10px 20px;
  border-radius: 22px;


  flex: 0 1 auto;        
  min-width: 180px;       
  max-width: 100%;      

  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* your typography */
  font-size: 1.2rem;
  font-weight: 700;

  /* colour vars assigned by nth-of-type rules */
  background: var(--btn-bg, #eee);
  color: var(--btn-text, #111);
}

/* Kill the old fixed-column rule on wide screens */
@media (min-width: 1200px) {
  .links-button-container a,
  .links-button-container span {
    flex: initial;      /* override previous calc-based widths */
    text-align: center;
  }
}

/* Optional: make very narrow screens let buttons fill the line */
@media (max-width: 420px) {
  .links-button-container a.download-link.button {
    flex: 1 1 100%;
    min-width: 0;       /* allow full-width with ellipsis */
  }
}

/* Cycle through 8 colour pairs; repeats on the 9th, 17th, etc. */
.links-button-container a.download-link.button:nth-of-type(5n + 1) { --btn-bg: var(--dp-bg); --btn-text: var(--dp-text); }
.links-button-container a.download-link.button:nth-of-type(5n + 2) { --btn-bg: var(--pp-bg); --btn-text: var(--pp-text); }
.links-button-container a.download-link.button:nth-of-type(5n + 3) { --btn-bg: var(--bp-bg); --btn-text: var(--bp-text); }
.links-button-container a.download-link.button:nth-of-type(5n + 4) { --btn-bg: var(--lp-bg); --btn-text: var(--lp-text); }
.links-button-container a.download-link.button:nth-of-type(5n + 5) { --btn-bg: var(--mp-bg); --btn-text: var(--mp-text); }


/* Optional: hover (slight opacity) */
.links-button-container a.download-link.button:hover {
  opacity: 0.9;
}


.cta-div1 {
    display: flex;
  flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}
.cta-div2 {
  display: flex;
  flex: 1;
}

.banner-cta {
    align-items: flex-start;
    display: flex
;
    flex-direction: row;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    width: 100%;
    z-index: 2;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-left: 5px;
    padding-right: 5px;
}

.cta-button-container {
    width: 100%;
  padding-top: 20px;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-end;
}

.cta-button-container a.download-link.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 10px;
    border-radius: 22px;
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 200px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 700;
      text-decoration: none;
    line-height: 110%;
}

.ctasvr {
  height: 50px;
        display: flex;
    align-items: center;
}

.ctasvr svg {
    max-height: 100%;
    width: auto;
}

@media (max-width: 1060px) {

.banner-cta {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    max-width: 100%;
    position: relative;
    margin: auto;
    width: 90%;
    z-index: 2;
  padding: 10px;
}
.cta-button-container {
    padding-top: 0px;
    align-items: center;
  padding: 10px;
}

 }


.headline-banner .hbanner-content {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    width: 100%;
    z-index: 2;
    align-content: center;
}

.hbanner-div1 {
  padding: 10px;
  flex: 4;
}

.hbanner-div2 {
  flex: 1;
}

.hbannersvr {
    height: 400px;
    display: flex;
    align-content: center;
    align-items: center;
}

.hbannersvr svg {
  max-height: 200px;
}


.hbanner-header h2 {
  font-size: 4rem;
  line-height: 1.1em;
}

@media (max-width: 710px) {
  
  .link-banner .hbanner-content {
    align-items: center;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    width: 100%;
    z-index: 2;
    align-content: center;
    margin: 20px auto;
}

.hbanner-header {
  text-align: center;
}

.hbanner-div1 {
  padding: 10px;
  flex: 4;
}

.hbanner-div2 {
  flex: 1;
}

.hbannersvr {
    height: 100px;
    display: flex;
    align-content: center;
    align-items: center;
}

.hbannersvr svg {
  max-height: 100px;
}


.hbanner-header h2 {
  font-size: 3em;
  line-height: 1.1em;
}
}

.instagram-banner {
    display: flex
;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 0px;
    padding-bottom: 20px;
    padding-top: 20px;
}


.instagram-banner  .banner-content {
    align-items: flex-start;
    display: flex
;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 0px 5px 0px 5px;
    max-width: 1200px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.instatitle h2 {
    font-size: 1.8em;
    line-height: 1.8em;
    margin-bottom: 5px;
    margin-top: 10px;
}