/* Hide Mastheader and navigation aside */
#uct-landing-banner-block,
#sidebar-first {
  display: none;
}

/* Remove margin between navigation and main content section */
.node--type-page.full > div.node__content {
  margin-top: 0;
}

/* Removing container side margins */
.main-content.grid-container {
  z-index: 0;
}

/* Set content section to 100% width */
section.section-main.large-9 {
  width: 100%;
}

/* @media print, screen and (min-width: 40em) {
  .main-content.grid-container {
    max-width: none;
  }
} */

/* I am I want homepage */
.rw-paragraph--webform--wrapper {
  background-color: #F6F6F6;
  box-shadow: 0 12px 24px 0 rgba(0,0,0, .25);
}
/* I am I want homepage END */

/* Spacing */
.rw-paragraph--webform--wrapper {
  padding: .5rem 0;
  position: relative;
  z-index: 1;
}

.field--name-field-components > .field__item:last-child {
  margin-bottom: 2rem;
}

@media print, screen and (min-width: 40em) {
  .homepage-content-section {
    margin: 5.5rem 0;
  }
}

@media print, screen and (min-width: 64em) {
  .rw-paragraph--webform--wrapper {
    padding: 4rem 0;
  }
}

/* Spacing removal */
.view-uct-articles .view-filters {
  margin-bottom: 0;
}

.node__content[class] .field--name-field-components > .field__item:first-child,
.node__content[class] .field--name-field-components > .field__item:first-child + .field__item,
.node__content[class] .field--name-field-components > .field__item:first-child + .field__item + .field__item {
  margin: 0 !important;
}
/* Spacing END */

/* background patterns */
@media screen and (min-width: 60em) {
  .paragraph--type--rw-wysiwyg {
    position: relative;
  }

  #albumCarousel_1 {
    z-index: 1;
  }

  section.section-main.large-9 {
    position: relative;
  }

  section.section-main.large-9::before {
    display: block;
    content: '';
    position: absolute;
    z-index: -1;
    background-image: url("/sites/default/files/uct_ac_za/homepage-section-pattern-1.svg");
    background-position: right;
    background-size: 360% auto;
    width: 20vw;    
    height: 100%;
    top: 0;
    right: calc(50% - 50vw);
    transform: rotate(180deg);
    background-repeat: repeat-y;
  }

  #footer {
    z-index: 1;
  }

}
/* background patterns END*/

/* Slider home page styles */
.album-carousel-wrapper .slick-initialized .slick-slide {
  overflow: hidden;
}

div.paragraph--type--uct-multi-content-reference .view-display-id-content_reference_carousel {
  margin-bottom: 0;
}

@media print, screen and (min-width: 64em) {
  .album-carousel-wrapper {
    background: transparent;
  }
  
  .album-carousel .carousel-slide::before {
    background-image: url("/sites/default/files/uct_ac_za/slide--graphic.png");
    background-position: center top;
    background-size: 117% auto;
    background-repeat: no-repeat;
    height: calc(26% / 0.5625);
  }
}

/* Carousel title labels | carousel tag */
@media print, screen and (min-width: 64em) {
  .uct-carousel .rw-paragraph--title {
    margin: 0;
    position: absolute;
    inset: 1rem auto auto 6rem;
    font-size: .85rem;
    background: #003560;
    padding: .5rem 1rem;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    line-height: .85rem;
    z-index: 2;
  }

  .uct-carousel .image-left-text-right .rw-paragraph--title {
    inset: 1rem auto auto 55%;
  }

  
}

/* Homepage buttons */
.homepage-uctnews-button {
  text-align: center;
  margin: 1rem 0 0;
}

.homepage-button-columns {
  padding: 0 0.75rem;
  max-width: 90rem;
  margin: auto;
}

.homepage-button {
  text-align: center;
}

@media print, screen and (min-width: 60em) {
  .homepage-button-columns {
    width: 100%;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
  }

  .homepage-button {
    width: 50%;
    text-align: right;
  }
}
/* Homepage buttons END */