/* 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 {
  padding-right: 0;
  padding-left: 0;
  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 */
.homepage-content-section {
  margin: 2.875rem 0 1.4375rem;
}

#albumCarousel_1,
#albumCarousel_2 {
  margin: 1rem 0;
}

#albumCarousel_2 {
  margin: 2.1875rem 0 1.4375rem;
}

.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 {
  background: var(--rw-primary-color, #00243a);
}

.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;
}

div.album-carousel  .carousel-slide .field--name-field-media-image img {
  max-height: 600px;
  object-fit: cover;
  object-position: center;
}

@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;
  }
}

/* Mirco view and Multi content ref component grid view display*/
.paragraph--type--uct-micro-view .views-view-grid,
.paragraph--type--uct-multi-content-reference .views-view-grid,
.rw-paragraph--gallery-wrapper,
.rw-paragraph--video-wrapper {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}    

.paragraph--type--uct-micro-view article.teaser,
.paragraph--type--uct-multi-content-reference .views-view-grid article.teaser {
  background: transparent;
}

@media print, screen and (min-width: 40em) {
  .paragraph--type--uct-micro-view .views-view-grid,
  .paragraph--type--uct-multi-content-reference .views-view-grid,
  .rw-paragraph--gallery-wrapper,
  .rw-paragraph--video-wrapper {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* Grid Teaser Display mode  */
.node--type-article.teaser .node__content:first-child {
  padding-left: 7.25rem;
  position: relative;
  min-height: 6.25rem;
}

.node--type-article.teaser .node__content:first-child::before {
  width: 6.25rem;
  position: absolute;
  height: 6.25rem;
  left: 0;
}
/* Mirco view component END */

/* 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 */

/* UCT News iframe section */
.field__item:nth-child(3) .rw-paragraph--title,
.field__item:nth-child(3) .rw-paragraph--wysiwyg {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
} 

@media print, screen and (min-width: 40em) {
  .field__item:nth-child(3) .rw-paragraph--title,
  .field__item:nth-child(3) .rw-paragraph--wysiwyg {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}
/* END UCT News iframe section */