/*
Theme Name: Graham
Template: elston
Author: Loz
Description: Graham's Child Theme
Version: 1.0.0
Text Domain: elston
*/

:root {
  --slate: #3F4F5D;
  --cyan: #47D4E2;
  --dark-grey: #232323;
  --grey: #DBDBDB;
  --blue: #274c77;
}

@font-face {
  font-family: "ataero";
  src:
    url("resources/fonts/ataero/AtAero-Retina.woff2") format("woff2"),
    url("resources/fonts/ataero/AtAero-Retina.woff") format("woff");
}

html body,
body p,
body ul,
body ol {
  font-size: 18px;
}

body,
nav,
h1,
h2,
h3,
h4,
h5,
p {
  font-family: 'ataero', sans-serif !important;
  font-weight: normal;
  color: var(--dark-grey) !important;
}

.single-portfolio h3 {
  text-align: center;
  color: var(--blue) !important;
}

.gap {
  gap: 15px;
}

.text-xl,
.text-xl P {
  font-size: 40px;
  line-height: 1.4;
}

.g-button i.play-icon {
  color: var(--slate);
  padding: 4px 8px;
  background-color: var(--cyan);
  display: inline-block;
  font-size: 11px;
  border-radius: 4px;
}

.g-button,
button.g-button {
  border-radius: 1000px;
  background: var(--cyan);
  color: black !important;
  font-size: 16px !important;
  padding: 10px 30px;
  border: none;
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 10px;
}

.g-button i {
  font-size: 24px;
}

.g-button.g-button-tight i {
  font-size: 18px;
}

.g-button.g-button-outline,
button.g-button.g-button-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
}

.g-button.g-button-white,
button.g-button.g-button-white {
  color: white !important;
  border-color: white !important;
}

.g-button.g-button-tight,
button.g-button.g-button-tight {
  padding: 8px 16px;
  white-space: nowrap;
}

.g-button-clean {
  padding: 0;
  margin: 0;
  border: none;
  background-color: transparent;
}

.g-button-more {
  display: flex;
  align-items: center;
  gap: 15px;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
}

.g-button-more span,
.icon-circle {
  background-color: var(--cyan);
  color: white;
  aspect-ratio: 1 / 1;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1000px;
}

.elstn-portfolio-prev,
.elstn-portfolio-next {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-circle {
  color: var(--slate);
}

.g-icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--dark-grey);
  gap: 10px;
}

.g-icon-link i {
  font-size: 22px;
  color: var(--cyan);
}

.single-portfolio .elstn-wrap-inner {
  height: auto;
}

.g-standfirst,
.g-standfirst > * {
  font-size: 32px;
  line-height: 1.6;
}

.g-standfirst > *:last-child {
  margin-bottom: 0 !important;
}

.g-section {
  margin-top: 60px;
}

.g-panel-rounded {
  background-color: white;
  padding: 30px;
  border-radius: 24px;
}

.g-panel-rounded-list {
  margin-bottom: 45px;
  font-size: 18px;
  padding: 45px;
}

.g-panel-testimonial img {
  max-width: 50%;
  margin-bottom: 30px;
}

.g-panel-testimonial h2 {
  display: flex;
  flex-direction: column-reverse;
  color: var(--dark-grey);
  font-size: 32px;
  margin-bottom: 30px;
}

.g-panel-testimonial h2 span {
  font-size: 18px;
  text-transform: uppercase;
}

.g-top-panel {
  background: var(--slate);
  color: white !important;
  padding:  80px 60px;
  font-size: 24px;
}

.g-top-panel > h1,
.g-top-panel div > h1 {
  display: flex;
  flex-direction: column;
  color: white !important;
  font-size: 62px;
  font-weight: normal;
  margin-bottom: 30px;
}

.g-top-panel > h1 span ,
.g-top-panel div > h1 span {
  font-size: 24px;
}

.g-top-panel,
.g-top-panel p,
.g-top-panel .g-top-panel-text {
  color: white !important;
  font-size: 24px;
}

.g-top-panel > div {
  padding-right: 15%;
}

.g-top-panel .g-top-panel-text {
  margin-bottom: 120px;
}

.g-top-panel-digital-partner {
  padding-bottom: 45px !important;
}

.g-top-panel-digital-partner > div {
  padding-right: 0;
}

.g-top-panel-digital-partner .g-top-panel-text {
  margin-bottom: 0;
}

.g-top-panel-digital-partner .g-top-panel-text p {
  font-size: 18px;
}

.g-top-panel-testimonials {
  margin-bottom: 100px;
}

.g-portfolio-header {
  min-height: 100vh;
  padding-bottom: 100px;
  position: relative;
}

.g-top-panel-portfolio {
  background: var(--slate);
  color: white !important;
  padding: 60px 0;
  font-size: 18px;
}

.g-top-panel-portfolio h1 {
  color: white !important;
  font-size: 62px;
  line-height: 1.2;
  margin-bottom: 80px;
}

.g-top-panel-portfolio .elstn-more-project{
  padding: 0;
  margin-bottom: 30px;
}

.g-top-panel-portfolio .elstn-more-project a {
  color: white !important;
  font-size: 18px;
  line-height: 1;
  text-transform: none;
}

.g-portfolio-list {
  row-gap: 30px;
  padding: 0 15px;
}

.g-portfolio-card {
  aspect-ratio: 1.32 / 1;
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.g-portfolio-card img {
  aspect-ratio: 1.32 / 1;
  width: 100%;
  object-fit: cover;
  object-position: left top;
}

.g-portfolio-card > a.g-portfolio-card-overlay {
  aspect-ratio: 1.32 / 1;
  position: absolute;
  top: 0;
  left :0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3F4F5D;
  opacity: 0;
  transition: 0.3s;
  padding: clamp(30px, 60px, 3vw);
}

.g-portfolio-card > a.g-portfolio-card-overlay > span {
  aspect-ratio: 1.32 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.g-portfolio-card > a.g-portfolio-card-overlay h2 {
  line-height: 1;
  font-size: 1.7vw;
}

.g-portfolio-card > a.g-portfolio-card-overlay p {
  margin-top: 30px;
  font-size: 2.4vw;
  line-height: 1.6;
  text-wrap: pretty;
}

.g-portfolio-card > a.g-portfolio-card-overlay h2,
.g-portfolio-card > a.g-portfolio-card-overlay p {
  color: white !important;
}

.g-portfolio-card:hover .g-portfolio-card-overlay {
  opacity: 1;
}

.g-portfolio-card span:last-child {
  display: flex;
  gap: 30px;
}

.g-intro-section {
  margin-top: 30px;
}

.g-intro-section h2 {
  display: flex;
  flex-direction: column-reverse;
}

.g-intro-section h2 span {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
}

.g-intro-section-content {
  display: none;
}

.g-intro-section-content.selected {
  display: block;
}

.g-portfolio-nav-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 1;
  padding: 10px 0;
  display: none;
}

.g-portfolio-nav-wrapper .g-portfolio-nav {
  margin: 0;
}

.g-portfolio-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  float: none;
}

.g-portfolio-nav button {
  font-size: 16px;
  border: none;
  background: var(--grey) !important;
  padding: 10px 24px;
  transition: all 0.3s;
}

.g-portfolio-nav button:hover,
.g-portfolio-nav button.selected {
  background: var(--cyan) !important;
}

.g-portfolio-nav button:first-child {
  border-top-left-radius: 1000px;
  border-bottom-left-radius: 1000px;
}

.g-portfolio-nav button:last-child {
  border-top-right-radius: 1000px;
  border-bottom-right-radius: 1000px;
}

.g-video-control {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.g-video-control img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  position: absolute;
  top: 0;
  z-index: 0;
}

.g-video-control-text {
  color: white;
  position: relative;
  z-index: 1;
}

.g-video-control-text > h2 {
  color: var(--cyan) !important;
  display: flex;
  flex-direction: column;
  font-size: 22px;
  margin: 15px 0;
  line-height: 1.2;
}

.g-video-control-text > h2 span {
  color: white !important;
  text-transform: uppercase;
  font-weight: bold;;
}

.g-play-button {
  background-color: var(--cyan);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 20px;
}

.video-modal .modal-dialog {
  max-width: 75%;
}

.video-modal .modal-header,
.video-modal .modal-footer {
  display: none;
}

.video-modal .modal-body,
.video-modal .modal-body iframe {
  padding: 0;
  height: auto;
  aspect-ratio: 16 / 9;
}

.elstn-footer {
  font-size: 16px;
}

.g-button-group {
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .g-intro-section button.show-video {
    transform: translateY(-80px);
    margin: 0;
  }

  .g-intro-section .g-panel-rounded {
    overflow: hidden;
    margin-bottom: 30px;
  }

  .container {
    margin: 0 auto;
  }
}

@media screen and (max-width: 992px) {
  .container {
      margin: 0 auto;
  }

  .g-portfolio-list .col-md-6 {
    padding: 0 10px;
  }
}

@media screen and (max-width: 767px) {
  .container {
      margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .container {
    margin: 0 !important;
    padding: 0 !important; 
  }

  .g-portfolio-list {
    gap: 15px;
  }

  .g-portfolio-list .col-md-6 {
    padding: 0;
  }


  .g-portfolio-header {
    min-height: auto;
    padding-bottom: 0;
  }

  .g-top-panel-testimonials {
    margin-bottom: 15px;
  }

  .g-top-panel {
    padding: 75px 15px 30px 15px;
  }

  .g-top-panel > h1,
  .g-top-panel div > h1 {
    font-size: 42px;
    line-height: 1.2;
  }

  .g-top-panel > h1 span,
  .g-top-panel div > h1 span {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .g-top-panel .g-top-panel-text {
    margin-bottom: 45px;
    font-size: 20px;
    padding-right: 0;
  }

  .g-top-panel .g-top-panel-text p {
    font-size: 20px;
  }

  .g-top-panel-portfolio h1 {
    font-size: 42px;
    text-wrap: pretty;
    margin-bottom: 60px;
  }

  .g-panel-testimonial {
    margin-bottom: 30px;
  }

  .g-top-panel-portfolio .container {
    padding: 0 15px !important;
  }

  .g-button-more {
    display: none;
  }

  .g-portfolio-nav-intro {
    overflow-x: scroll;
    width: calc(100% + 30px);
  }

  .g-portfolio-nav-intro button {
    white-space: nowrap;
  }

  .g-portfolio-card > a.g-portfolio-card-overlay h2 {
    line-height: 1;
    font-size: 3.7vw;
  }
  
  .g-portfolio-card > a.g-portfolio-card-overlay p {
    margin-top: 5vw;
    font-size: 6vw;
    line-height: 1.6;
  }

  .g-section {
    margin-top: 30px;
  }

  .g-section .col-md-7 {
    padding: 0 15px;
  }

  .g-portfolio-nav-wrapper[style] {
    display: none !important;
  }

  .g-standfirst, .g-standfirst > * {
    font-size: 22px;
  }

  .g-panel-rounded {
    margin: 0;
    padding: 30px 15px;
    border-radius: 0;
  }

  .g-portfolio-header .container .g-section:first-child {
    margin-top: 0;
  }

  .g-play-button {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 16px;
  }

  .g-button-group {
    margin-right: -15px;
    flex-wrap: nowrap;
  }
}