/* Module for styling banner elements on desktop
   and mobile. */

/* Variables available for use (globals.css will be loaded beforehand):
   --brand-main (and transparent)
   --brand-second (and transparent)
   --brand-third (and transparent)
   --border-rad
   --Alverata
   --mobile-width
*/

/* New card elements to replace the original gradient
 * design. Cards will be used for any modular information
 * so they can link to pages with further details.
 *
 * Layout remains consistent throughout:
 * - Image background
 * - Text box with H2 and paragraph
 * - Button with a link
 */

 /* Card container element */
.card {
  /* Grid is single column, three rows for content */
  display: grid;
  grid-template-rows: 100%;
  grid-template-columns: 50% 50%;

  /* Cards will always be in a grid, and
     should take up one grid box. */
  height: 100%;
  width: 80%;
  margin-left: auto;
  margin-right: auto;

  /* Keep the box the right size. */
  box-sizing: border-box;

  border: 1px solid var(--brand-third);

  background-color: var(--brand-third);
}

.card:nth-child(even) {
  grid-template-columns: 50% 50%;
}

/* Background image */
.card figure,
.card img {
  /* Positioned as the background,
     but not a background-image so that
     the image can flow in from WP. */
  position: relative;
  grid-area: 1 / 1 / 2 / 2;

  /* Place behind and fill the element. */
  z-index: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.card:nth-child(even) figure,
.card:nth-child(even) img {
  grid-area: 1 / 2 / 2 / 3;
}

.card .card-inner-text {
  position: relative;
  z-index: 1;
  grid-area: 1 / 2 / 2 / 3;

  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 30% 50% 20%;
}

.card:nth-child(even) .card-inner-text {
  grid-area: 1 / 1 / 2 / 2;
}

.card .card-inner-text h2 {
  position: relative;
  top: 10%;
  left: 10%;

  text-align: left;

  font-family: Greatly;
  font-weight: normal;

  color: var(--brand-main);
  opacity: 100%;


  grid-area: 1 / 1 / 2 / 2;
  margin-top: auto;
  margin-bottom: 0px;
  z-index: 1;

  alignment-baseline: alphabetic;
}

.card .card-inner-text p {
  position: relative;
  padding-top: 35px;
  padding-left: 10%;
  padding-right: 10%;

  grid-area: 2 / 1 / 3 / 2;
  z-index: 2;
  align-self: start;

  width: 75%;

  color: var(--brand-main);

}

@media screen and (max-width: 600px) {
  .card {
    grid-template-rows: 50% 50%;
    grid-template-columns: 100%;
    width: 100%;
  }

  .card:nth-child(even) {
    grid-template-columns: 100%;
  }

  .card figure,
  .card img {
    grid-area: 1 / 1 / 2 / 2;
  }

  .card:nth-child(even) figure,
  .card:nth-child(even) img {
    grid-area: 1 / 1 / 2 / 2;
  }

  .card .card-inner-text {
    grid-area: 2 / 1 / 3 / 2;
    grid-template-rows: 20% 60% 20%;
    height: 100%;
    margin-top: 5%;
    padding-bottom: 5%;
  }

  .card .card-inner-text h2 {
    padding-left: 5%;
    padding-top: 18px;;
    left: 0%;
  }

  .card .card-inner-text p {
    align-self: start;
    margin-top: 0px;
    padding-top: 40px;
    padding-left: 5%;
    padding-right: 0px;
    width: 90%;
  }

  .card:nth-child(even) .card-inner-text {
    grid-area: 2 / 1 / 3 / 2;
  }
}

.card .card-buttons {
  grid-area: 3 / 1 / 4 / 2;
  border: 10px solid var(--brand-third);
  box-sizing: border-box;
}


.card .card-buttons .button {
  height: 100%;
  width: 100%;
  background-color: var(--brand-main);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: unset;
  padding: 0px;
}

.card .card-buttons .button a {
  color: var(--brand-third) !important;
  font-family: Greatly !important;
  font-size: 2rem;
}


.transparent {
    background-color: transparent;
}

.transparent .left-image {
    grid-column: 1 / 4;
    z-index: -10;
}

.transparent .right-image {
    grid-column: 3 / 7;
    z-index: -10;
}

.transparent .banner-right-text {
    grid-area: 10 / 3 / 30 / 7;
    z-index: 10;
}

.transparent .banner-right-text h2 {
    text-align: left;
}

.transparent .banner-left-text {
    grid-area: 1 / 1 / 3 / 3;
    z-index: 10;
}

.transparent .banner-left-text h2 {
    text-align: right;
}

.transparent-right {
    background: linear-gradient(to right, #f9f7ea00, var(--brand-third) 10%);
}

.transparent-left {
    background: linear-gradient(to right, var(--brand-third), 20%, var(--brand-third-transparent));
}

.red {
    background-color: var(--brand-main);
}

.red .left-image {
    grid-column: 1 / 4;
    z-index: -10;
}

.red .right-image {
    grid-column: 3 / 7;
    z-index: -10;
}

.red .banner-right-text {
    grid-area: 10 / 3 / 30 / 7;
    z-index: 10;
}

.red .banner-right-text h2 {
    text-align: left;
}

.red .banner-left-text {
    grid-area: 1 / 1 / 3 / 3;
    z-index: 10;
}

.red .banner-left-text h2 {
    text-align: right;
}

.red-right {
    background: linear-gradient(to left, var(--brand-main), 60%, var(--brand-main-transparent));
}

.red-left {
    background: linear-gradient(to right, var(--brand-main), 60%, var(--brand-main-transparent));
}

.detail-card {
  grid-column: span 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  grid-template-areas:
    "img img img"
    "img img img"
    "div div div"
    "div div div"
    "div div div";
  height: 90%;
  padding: 15px;
  margin-bottom: 25px;
  box-sizing: border-box;
  border-radius: var(--border-rad);
  box-shadow: var(--global-shadow);
}

.detail-card figure,
.detail-card img {
  grid-area: img;
  margin: 10px auto;
  width: 100%;
  height: 250px;
  object-fit: cover;
  box-sizing: border-box;
  box-shadow: var(--global-shadow);
}

.detail-card .card-text {
  grid-area: div;
  place-self: start stretch;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: repeat(4, 75px);
}

.detail-card .card-text h3 {
  grid-row: 1;
  margin: 25px 0;
}

.detail-card .card-text > p {
  grid-row: 3;
}

.detail-card .card-text .button {
  place-self: center;
  margin: 35px auto;
  grid-row: 4;
}

.detail-card .card-text .button p {
  font-family: var(--Alverata);
  color: var(--brand-third);
}

.three-wide {
  width: 100%;
  display: grid;
  grid-template-columns: 31% 36% 31%;
  column-gap: 1%;
}

.three-wide figure,
.three-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.three-wide figure:nth-child(odd) {
  height: 70%;
  place-self: center;
}

@media screen and (max-width: 600px) {
  .detail-card .card-text > p {
      grid-row: 2;
  }

  .three-wide {
    display: flex;
    flex-direction: column;
    gap: 7vh;
  }

  .three-wide figure:nth-child(odd) {
    height: 100%;
  }
}#venue-features {
    grid-area: 14 / 1 / 18 / 6;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 150px repeat(3, 225px); 
    background-color: transparent;
    color: var(--brand-main);
    place-self: start center;
}

#venue-features h2 {
    grid-column: span 3;
    font-family: AlverataBl, Georgia, 'Times New Roman', Times, serif;
    line-height: 1;
    text-align: center;
    color: var(--brand-second);
    margin: 0px;
}

#venue-features .venue-feature {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

#venue-features .venue-feature .inner-div p {
    text-align: center;
    font-family: AlverataBl, Georgia, 'Times New Roman', Times, serif;
    font-weight: 200;
    font-size: 1.3rem;
    margin-left: 10%;
    margin-right: 10%;
    color: var(--brand-second);
    line-height: 1.1;
}

#venue-features .left-border::before {
    content: '';
    height: calc(100% - 50px);
    width: 1px;
    top: 30px;
    background-color: var(--brand-main);
    position: absolute;
    left: 0;
}

#venue-features .venue-feature::after {
    content: '';
    width: 80%;
    height: 1px;
    background-color: var(--brand-main);
    position: absolute;
    bottom: 0;
    left: 10%;
}

    .venue-feature.no-bottom .inner-div::after {
        display: none;
    }

@media screen and (max-width: 600px) {
    #venue-features {
        padding: 35px 3vw 25px 3vw;
        display: flex;
        flex-direction: column;
        flex-grow: 2;
        margin-top: 25px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    #venue-features .venue-feature {
        width: 100%;
        height: 150px;
    }

    #venue-features .venue-feature .inner-div p {
        margin: var(--venue-features-space) 10%;
    }

    #venue-features .venue-feature::before {
        display: none;
    }

    #venue-features :last-child::after {
        display: none;
        margin-bottom: 5px;
    }
}

@media screen and (mix-width: 600px) {
    .venue-feature.no-bottom .inner-div::after {
        display: none;
    }
}