/* set variables */
:root {
  --text: 'Kanit', sans-serif;
  --icons: 'Font Awesome 6 Pro';
  --white: #ffffff;
  --black: #2b2b2b;
  --blue: #013552;
  --lightblue: #3692AF;
  --sunset: #DFAD59;
  --cream: #FFF9EF;
  --darkgrey: #8E8E8E;
  --grey: #DDE4E8;
  --lightgrey: #f3ebdd;
  --transition-fast: all 100ms ease-out;
  --transition-normal: all 200ms ease-out;
  --transition-slow: all 400ms ease-out;
}

/* box sizing rules */
*,*::before,*::after {
  box-sizing: border-box;
}

/* set html core defaults */
html {
  min-height: 100%;
  overflow-y: scroll;
	scroll-behavior: smooth;
}

/* remove default margin */
body,h1,h2,h3,h4,p,ul,ol,li,figure,figcaption,blockquote,dl,dd {
  margin: 0;
}

/* set core body defaults */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
	height: 100%;
  margin: 0 auto;
  text-rendering: optimizeSpeed;
  background: var(--cream);
  font-family: var(--text);
  font-size: 18px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.6;
}

/* change focus outline */
:focus {
  outline: 1px dotted var(--lightblue);
}

/* remove list styles, padding, and margins on ul, ol elements without a class attribute */
ul:not([class]),ol:not([class]) {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* remove list styles on ul, ol elements with a class attribute */
ul[class],ol[class] {
  list-style-type: none;
	padding: 0;
}

/* make images easier to work with */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.main img {
  border-radius: 32px;
}

/* inherit fonts for inputs and buttons */
input,button,textarea,select {
  font: inherit;
}

/* remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* color of highlight */
::-moz-selection {
  background: var(--sunset);
  color: var(--darkblue);
  text-shadow: none;
}
::selection {
  background: var(--sunset);
  color: var(--darkblue);
  text-shadow: none;
}

/* default font styles */

.uppercase {
  text-transform: uppercase;
}
h1,
body.home .main:not(.blue-bg) h2,
#footer h2 {
  position: relative;
  font-family: var(--text);
	font-size: clamp(2.625rem, 2.2273rem + 1.1364vw, 3.25rem);
  font-weight: 700;
  color: var(--blue);
	line-height: 1;
  margin: 0 0 25px;
}
  body.page-template-tpl-gallery h1 {
    margin-bottom: 80px;
  }
h2 {
  position: relative;
  font-family: var(--text);
  font-size: clamp(2.125rem, 1.8068rem + 0.9091vw, 2.625rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.1;
  margin: 0 0 30px;
}
  h2.large {
    font-size: clamp(2.625rem, 2.2273rem + 1.1364vw, 3.25rem);
    margin: 0 0 40px;
  }
  body:not(.page-template-tpl-gallery) h1 + h2,
  body.home .main:not(.blue-bg) h1 + h2 {
    font-family: var(--text);
    font-size: clamp(1.25rem, 1.0909rem + 0.4545vw, 1.5rem);
    font-weight: 500;
    color: var(--lightblue);
    line-height: 1.2;
    margin: 0 0 30px;
  }
h3 {
  font-family: var(--text);
  font-size: clamp(1.25rem, 1.0909rem + 0.4545vw, 1.5rem);
  font-weight: 500;
  color: var(--lightblue);
  line-height: 1.1;
  margin: 0 0 30px;
}
  .blue-bg h3 {
    color: var(--sunset);
  }
h4 {
  font-family: var(--text);
  font-size: clamp(1.25rem, 1.0909rem + 0.4545vw, 1.5rem);
  font-weight: 400;
  color: var(--blue);
  line-height: 1.2;
  margin: 0 0 20px;
}
h5 {
  font-family: var(--text);
  font-size: clamp(1.125rem, 0.9659rem + 0.4545vw, 1.375rem);
  font-weight: 500;
  color: var(--blue);
  line-height: 1.2;
  margin: 0 0 20px;
}
h6 {
  font-family: var(--text);
  font-size: clamp(1.125rem, 1.0455rem + 0.2273vw, 1.25rem);
  font-weight: 600;
  color: var(--darkblue);
  line-height: 1.2;
  margin: 0 0 20px;
}
p a {
  font-weight: 700;
  text-decoration: 1px underline dotted;
}
@media screen and (max-width: 580px) {
  h1,h2,h3,h4,h5,h6 {
    word-break: break-word;
  }
}

/* default link styles */

a {
  color: var(--blue);
  text-decoration: none;
  text-decoration-skip-ink: auto;
	transition: var(--transition-normal);
}
.main a[target="_blank"]:after {
  position: relative;
  top: -2px;
  content: '\f08e';
  font-family: var(--icons);
  margin: 0 0 0 5px;
  font-size: 0.7rem;
}
a:hover,
a:focus {
  color: var(--sunset);
  text-decoration: none;
}
@media screen and (max-width: 400px) {
	a {
    word-break: break-word;
  }
}

/* default element styles */

.container {
  position: relative;
  width: auto;
  max-width: 1440px;
  padding: 0 10px;
  margin: 0 auto;
}
.main:after {
  content: '';
  clear: both;
  display: table;
}
.main ul {
  list-style: outside disc;
  margin: 0 0 40px 20px;
}
.main ul.references {
  font-size: 0.8rem;
}
  .main ul ul {
    list-style: outside circle;
  }
.main ol {
  list-style: outside decimal;
  margin: 0 0 40px 20px;
}
hr {
  width: 100%;
  height: 2px;
  color: var(--grey);
  background: var(--grey);
  border: 0;
  padding: 0;
  margin: 40px 0;
}
  hr::after {
    content: '';
    clear: both;
    display: table;
  }
.alignleft {
  float: left;
  margin: 0 40px 40px 0;
}
.aligncenter {
  float: none;
  margin: 0 auto 40px;
}
  .aligncenter > img {
    margin: 0 auto;
  }
.alignright {
  float: right;
  margin: 0 0 6vh 4vw;
}
.wp-block-image figcaption {
  font-size: 14px;
  font-style: italic;
}
.centered {
  grid-column: 1 / -1;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin: 0 0 40px;
}
.alignleft,
.aligncenter,
.alignright,
embed,
iframe,
object {
  max-width: 100%;
}
embed,
iframe,
object {
  display: block;
  margin: 0 auto;
}
.to-top-btn {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  font-size: 22px;
  color: var(--blue);
  text-align: center;
  background: var(--sunset);
  border-radius: 12px 12px 0 0;
  transition: var(--transition-fast);
}
#topcontrol {
  z-index: 10;
}
	.to-top-btn:hover,
  .to-top-btn:focus {
    height: 52px;
	}
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.5px;
  background: var(--blue);
  border-radius: 8px;
  border: 2px solid var(--blue);
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}
.button.outlined {
  color: var(--white);
  background: transparent;
  border: 2px solid var(--blue);
}
.blue-bg .button {
  color: var(--blue);
  background: var(--sunset);
  border: 2px solid var(--sunset);
}
.blue-bg .button.outlined {
  color: var(--sunset);
  background: transparent;
  border: 2px solid var(--sunset);
}
  .button:hover,
  .button:focus {
    color: var(--blue);
    background: var(--sunset);
    border: 2px solid var(--sunset);
  }
  .blue-bg .button:hover,
  .blue-bg .button:focus {
    color: var(--blue);
    background: var(--white);
    border: 2px solid var(--white);
  }
  .button:after {
    position: relative;
    top: 1px;
    content: '\f178';
    font-family: var(--icons);
    margin-left: 10px;
  }
.hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  visibility: hidden !important;
}
@media screen and (max-width: 1366px) {
  .container {
    padding: 0 30px;
  }
}
@media screen and (max-width: 1200px) {
	.container {
    padding: 0 40px;
  }
	img {
	  width: 100%;
	  height: auto;
	}
	.attachment-post-thumbnail {
	  max-width: 100%;
	  height: auto;
	}
}
@media screen and (max-width: 1024px) {
	.alignleft,
  .aligncenter,
  .alignright {
    float: none;
    display: block;
    width: 100%;
    margin: 0 auto 60px;
  }
  picture.alignleft img,
  picture.aligncenter img,
  picture.alignright img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
@media screen and (min-width: 1025px) {
	.slide-up {
    position: relative;
	  top: 90px;
	  opacity: 0;
	}
	.slide-up.in-view {
	  animation: slideUp 1s 1 ease-out forwards;
	}
    .slide-up.delayed.in-view {
      animation-delay: 200ms !important;
    }
    .slide-up.delayed-02.in-view {
      animation-delay: 400ms !important;
    }
    .slide-up.delayed-03.in-view {
      animation-delay: 600ms !important;
    }
    .slide-up.delayed-04.in-view {
      animation-delay: 800ms !important;
    }
  .blur-in {
	  opacity: 0;
	}
	.blur-in.in-view {
	  animation: blurIn 750ms 1 ease-out forwards;
	}
  .slide-up.blur-in.in-view {
	  animation: blurIn 750ms 1 ease-out forwards, slideUp 1s 1 ease-out forwards;
	}
  .fade-in {
    filter: blur(4px);
	  opacity: 0;
	}
	.fade-in.in-view {
	  animation: fadeIn 1s 1 ease-out forwards;
	}
  .fade-in.delayed.in-view {
    animation-delay: 200ms;
	}
  .fade-in.delayed.in-view.more {
    animation-delay: 400ms;
	}
  .fade-in.delayed.in-view.most {
    animation-delay: 600ms;
	}
	@keyframes slideUp {
		0% {
      filter: blur(5px);
		  top: 90px;
		  opacity: 0;
		}
    40% {
		  top: 70px;
		  opacity: 0;
		}
		100% {
      filter: blur(0px);
		  top: 0;
		  opacity: 1;
		}
	}
  @keyframes fadeIn {
		0% {
      filter: blur(4px);
		  opacity: 0;
		}
		100% {
      filter: blur(0);
		  opacity: 1;
		}
	}
  @keyframes blurIn {
		0% {
		  filter: blur(6px);
      opacity: 0;
		}
		100% {
		  filter: blur(0px);
      opacity: 1;
		}
	}
}
@media screen and (max-width: 580px) {
  .to-top-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .container {
    padding: 0 20px;
  }
}

/* main content styles */

.main {
  position: relative;
  padding: 60px 0 80px;
}
.blue-bg {
  background-color: var(--blue);
}
  .blue-bg * {
    color: var(--white);
  }
.grey-bg {
  background-color: var(--lightgrey);
}
.white-bg {
  background-color: var(--white);
}
.main p,
.main ul,
.main ol {
  margin-bottom: 30px;
}
.main img {
  box-shadow: 0 10px 14px rgba(0,0,0,0.35);
}
@media screen and (min-width: 1201px) {
  .main {
    padding: 80px 0;
  }
}

/* header */

#header {
  position: fixed;
  z-index: 11;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--grey);
  transition: var(--transition-normal);
}
#header.sticky {
  padding: 10px 0;
  box-shadow: 0 6px 12px 0 rgba(0,0,0,0.3);
}
.admin-bar #header.sticky {
  top: 32px;
}
#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
  #header .custom-logo-link {
    position: relative;
    z-index: 901;
    display: block;
    width: 220px;
    height: auto;
    transition: var(--transition-fast);
  }
  #header.sticky .custom-logo-link {
    width: 51px;
    height: 50px;
  }
    #header .custom-logo-link img {
      width: 100%;
      height: 100%;
      max-width: none;
      object-fit: cover;
      object-position: left center;
    }
  #header .button {
    display: none;
  }
@media screen and (min-width: 1201px) {
  #header .button {
    display: flex;
  }
}

/* image/text blocks */

.main.angle-bottom + .main {
  padding-top: 30px;
}
.image-text .container {
  display: flex;
  gap: 30px 60px;
}
.image-text.reversed .container {
  flex-direction: row-reverse;
}
@media (min-width: 1025px){
  .image-text .container > picture,
  .image-text .container > img {
    flex: 0 1 45%;
    min-width: 0;
  }
  .image-text .content {
    flex: 0 1 55%;
    min-width: 0;
  }
  .image-text.angle-bottom .content {
    padding-bottom: 60px;
  }
  .image-text .container picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.angle-bottom:after {
  position: absolute;
  z-index: -1;
  bottom: -1px;
  content: '';
  width: 100%;
  min-height: 200px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 160px, 100% 100%, 0 100%);
}
@media screen and (max-width: 1024px) {
  .image-text .container,
  .image-text.reversed .container {
    flex-direction: column-reverse;
  }
}

/* footer */

#footer {
  padding: 60px 0 40px;
  margin-top: auto;
  background: var(--blue);
}
body.page-id-349 #footer {
  padding-top: 20px;
}
body.home #footer {
  padding: 40px 0;
}
#footer h2:not(.gform_submission_error) {
  color: var(--white);
}
#footer .contact-form {
  display: flex;
  gap: 80px;
}
  #footer .contact-form .form {
    width: 100%;
  }
  #footer .contact-form img {
    object-fit: contain;
    opacity: 0.1;
  }
#footer p {
  padding: 40px 0 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 15px;
  color: #40677D;
  text-align: center;
}
@media screen and (max-width: 1024px) {
  #footer .contact-form {
    flex-direction: column;
  }
  #footer .contact-form img {
    position: absolute;
    z-index: 0;
    top: 45%;
    left: 50%;
    width: auto;
    transform: translate(-50%, -50%);
  }
  #footer .contact-form .gform_wrapper {
    position: relative;
    z-index: 9;
  }
}

/* location template */

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px 100px;
}
  .download-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .download-card h2 {
    font-size: clamp(1.25rem, 1.0909rem + 0.4545vw, 1.5rem);
    color: var(--white);
    margin: 0;
  }
  .download-card a.image {
    position: relative;
    width: 100%;
    height: 260px;
    border: 8px solid var(--white);
  }
    .download-card a.image:before,
    .download-card a.image:after {
      position: absolute;
      z-index: 9;
      opacity: 0;
      transition: var(--transition-fast);
    }
    .download-card a.image:before {
      content: '';
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--blue);
    }
    .download-card a.image:after {
      content: '\f002';
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-family: var(--icons);
      font-size: 0px;
      color: var(--white);
    }
    .download-card a.image:hover {
      border: 8px solid var(--sunset);
    }
      .download-card a.image:hover:before {
        opacity: 0.8;
      }
      .download-card a.image:hover:after {
        font-size: 4rem;
        opacity: 0.3;
      }
  .download-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
  }
  .download-card .files {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .download-card .button:after {
    display: none;
  }
  .download-card .button:before {
    position: relative;
    top: 1px;
    font-family: var(--icons);
    margin-right: 10px;
  }
  .download-card .button[download]:before {
    content: '\f019';
  }

/* La Tribune page */

#hero {
  position: relative;
  background: var(--blue);
}
  #hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(1,53,82,0) 10%, rgba(1,53,82,0.8) 60%)
  }
  #hero > picture,
  #hero > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  #hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
  }
  #hero .container {
    position: relative;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  #hero .hero-text h2 {
    font-size: clamp(1.25rem, 1.0909rem + 0.4545vw, 1.9rem);
    font-weight: unset;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
    text-wrap: balance;
  }
.main p.references-title {
  margin-bottom: 10px;
}
@media screen and (min-width: 581px) {
  #hero .hero-text {
    max-width: 45vw;
  }
}
@media screen and (max-width: 580px) {
  #hero picture {
    opacity: 0.3;
  }
  #hero .container {
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* PDF Modal */

body.no-scroll { overflow: hidden; }
.pdf-modal { position: fixed; inset: 0; display: none; z-index: 10000; }
.pdf-modal.is-open { display: block; }
.pdf-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.pdf-modal__dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85vw; height: 85vh; margin: 0 auto; background: #fff; border-radius: 10px; display: flex; flex-direction: column; }
.pdf-modal__close { position: absolute; top: 16px; right: 16px; font-size: 38px; border: 0; background: transparent; color: var(--sunset); cursor: pointer; transition: var(--transition-normal); border-radius: 999px; }
.pdf-modal__close:hover { color: var(--white); }
.pdf-modal__body { padding: 0; }
#pdf-frame { width: 100%; height: 80vh; display: block; }

/* photo gallery */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: start;
  padding: 30px;
  margin-bottom: 40px;
  background: var(--lightgrey);
  border-radius: 12px;
}
  #gallery h1,
  .photo-gallery h2 {
    grid-column: 1 / -1;
  }
  .photo-gallery a {
    display: flex;
    border-radius: 12px;
  }
  .photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    box-shadow: 0 10px 14px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: var(--transition-normal);
  }
  #gallery .photo-gallery img {
    height: auto;
    aspect-ratio: 1 / 1;
  }
    .photo-gallery img:hover,
    .photo-gallery img:focus {
      box-shadow: 0 15px 25px rgba(0,0,0,0.5);
      transform: scale(1.02);
    }
@media screen and (max-width: 580px) {
  .photo-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* photo gallery - modal styles */
.lb {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); z-index: 9999;
}
.lb.open { display: flex; }
.lb__img {
  max-width: 90vw; max-height: 85vh;
  box-shadow: 0 10px 30px rgba(0,0,0,.6); border-radius: 8px;
}
.lb__caption {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: 90vw; text-align: center; color: #fff;
  font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
  .lb__btn:not(.lb__close):hover {
    top: 50.25%;
    transform: scale(1.1) translateY(-50%);
  }
.lb__btn:focus { outline: 2px solid #fff; outline-offset: 2px; }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
.lb__close {
  top: 16px; right: 16px; transform: none; width: 40px; height: 40px;
  font-size: 38px; position: absolute; background: transparent; color: var(--sunset); transition: var(--transition-normal);
}
.lb__close:hover { color: var(--white); }
@media (max-width: 640px) {
  .lb__btn { width: 38px; height: 38px; font-size: 20px; }
  .lb__caption { bottom: 16px; font-size: 13px; }
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  max-width: 65vw;
  border-radius: 12px;
  box-shadow: 0 10px 14px rgba(0,0,0,0.35);
}
.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* contact page */

#contact-page .container {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}
#contact-page .container > div {
  width: 100%;
  flex-basis: 50%;
}
@media (max-width: 768px) {
  #contact-page .container {
    flex-direction: column;
  }
}