.header-slot-container h2 {
  font-family: Gochi Hand;
}

@media only screen and (min-width: 600px) {

  #home #news-n6,
  #home .events-e6,
  #home #video-component {
    padding: 40px 80px;
  }
}

/* START MenuBar */
#m4 {
  border-top: 5px var(--secondary-color) solid;
}

/* END MenuBar */

/* START Gallery */
#g2 {
  --gallery-lightgray-color: #D3D3D3;
}


#g2 .pause_icon rect,
#g2 .play_icon rect {
  fill: var(--gallery-lightgray-color, var(--primary-color));
}

#g2 .pause_icon path,
#g2 .play_icon path {
  fill: #000;
}

#g2 {
  border-bottom: 6px var(--secondary-color) solid;
}

#g2 .text {
  background-color: rgba(211, 211, 211, 0.8) !important;
}

#g2 .left-arrow .button-action-content svg path:first-child,
#g2 .right-arrow .button-action-content svg path:first-child {
  fill: var(--gallery-lightgray-color);
}

@media screen and (min-width: 1280px) {
  #g2 .text {
    right: 0;
    left: unset !important;
    bottom: 0;
  }
}

/* END Gallery */

/* START ButtonBar */
#home #buttons-b3 {
  --icon-size: 107px;
}

@media only screen and (max-width: 991px) {
  #home #buttons-b3 {
    --icon-size: 60px;
  }
}

#home #buttons-b3 .wrapper .button {
  border-left: none;
  height: auto;
  background: transparent;
}

#home #buttons-b3 .wrapper .button:hover {
  -webkit-filter: brightness(100%);
  filter: brightness(100%);
}

#home #buttons-b3 .wrapper .button:hover .raw-svg {
  transform: scale(1.25);
}

#home #buttons-b3 .wrapper .button .button-link {
  padding: 25px 15px;
  line-height: 1.25;
}

#home #buttons-b3 .wrapper .button .button-link .icon-wrapper {
  font-size: var(--icon-size);
  background-color: var(--icon-and-text-color);
  border: 3px var(--secondary-color) solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

#home #buttons-b3 .wrapper .button .button-link .icon-wrapper .raw-svg {
  width: 0.5em;
  height: 0.5em;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.5s;
}

#home #buttons-b3 .wrapper .button .button-link .icon-wrapper .raw-svg span {
  width: 0.5em;
  height: 0.5em;
}

#home #buttons-b3 .wrapper .button .button-link .icon-wrapper .raw-svg svg {
  width: 0.5em;
  height: 0.5em;
}

#home #buttons-b3 .wrapper .button .button-link .icon-wrapper .raw-svg svg path {
  fill: var(--button-bg-color);
}

#home #buttons-b3 .wrapper .button .button-title {
  display: block;
  width: 100%;
  text-align: center;
}

/* END ButtonBar */

/* START News */
#view-news #news-n6 {
  position: relative;
}

#news-n6 .story {
  background-color: var(--primary-color);
  border-radius: 20px;
  padding-bottom: 25px;
}

#news-n6 .story .news-image .image-hidden-wrapper::before {
  content: close-quote;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  opacity: 0.7;
  transition: top 0.5s ease-in-out;
  z-index: 1;
}

#news-n6 .story:hover .news-image .image-hidden-wrapper::before {
  top: 0;
}

#news-n6 .story .news-image .image-hidden-wrapper img {
  z-index: 0;
}

#news-n6 .story .news-image {
  border-radius: 20px 20px 0 0;
}

#news-n6 .story .news-title {
  padding-left: 20px;
  padding-right: 15px;
  font-size: 20px;
  line-height: 1.1;
  font-family: Roboto Condensed, sans-serif !important;
  -webkit-line-clamp: unset;
  height: auto;
}

#news-n6 .story .news-title .news-snippet {
  display: none;
}

#news-n6 .story .news-date {
  padding-left: 20px;
}

#news-n6 .story .news-snippet {
  padding-left: 20px;
  padding-right: 15px;
  display: block;
  margin-top: 1em;
  color: var(--primary-color-contrast);
}

#news-n6 .N6-story .image-hidden-wrapper {
  border-bottom: 8px solid var(--news-accent-border-color);
  border-top: none;
  padding-top: 60%;
}

#news-n6 .nav .button-section .button svg {
  display: none;
}


#news-n6 .nav .button-section .button {
  position: absolute;
  top: calc(30%);
  z-index: 4;
  width: 50px;
  height: 50px;
}

#news-n6 .nav .button-section .scroll-right.button {
  right: 45px;
}

#news-n6 .nav .button-section .scroll-left.button {
  left: 55px;
}

#news-n6 .nav .button-section .button:after {
  content: close-quote;
  display: block;
  border: solid var(--primary-color-contrast);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 5px;
  position: relative;
}

#news-n6 .nav .button-section .scroll-left.button:after {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  left: 3px;
}

#news-n6 .nav .button-section .scroll-right.button:after {

  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  left: -3px;
}

/* END News */

/* START Events v7 Adjustments  */
#home .events-e6 .events-container .logo {
  display: none;
}

@media only screen and (min-width: 1200px) {
  #home .events-e6 {
    padding: 40px 80px !important;
  }

  #home .events-e6 .events-container .events-wrapper {
    width: 100% !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

#home .events-e6 .events-container .events-wrapper .event-card:hover .start-date {
  color: var(--event-date-border-color) !important;
  background-color: var(--event-bg-color-1) !important;
}

#home .events-e6 .events-container .events-wrapper .event-card .start-date {
  font-size: 24px;
  width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.25s linear;
  color: var(--event-bg-color-1) !important;
  background-color: var(--button-bg-color) !important;
}

/* END Events v7 Adjustments */

/* START Video */
#home #video-component .video {
  overflow: visible;
}

#home #video-component .video::before,
#home #video-component .video::after {
  content: close-quote;
  position: absolute;
  width: 62px;
  height: 50px;
  background-color: transparent;
  opacity: 0;
  transition: opacity 0.3s;
}

#home #video-component .video::before {
  top: -15px;
  left: -15px;
  border-top: 4px solid var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

#home #video-component .video::after {
  bottom: -15px;
  right: -15px;
  border-bottom: 4px solid var(--secondary-color);
  border-right: 4px solid var(--secondary-color);
}

#home #video-component .video:hover::before {
  opacity: 1;
  animation: spring-top-left 0.6s forwards;
}

#home #video-component .video:hover::after {
  opacity: 1;
  animation: spring-bottom-right 0.6s forwards;
}

@keyframes spring-top-left {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }

  50% {
    transform: translate(-5px, -5px) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes spring-bottom-right {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }

  50% {
    transform: translate(5px, 5px) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

#view-video .video,
#view-video .thumbnail img {
  border-radius: 15px;
}

#home #video-component .mirrors .next,
#home #video-component .mirrors .prev {
  mask-image: unset;
}

#home #video-component .mirrors .next {
  margin-right: -530px;
}

#home #video-component .mirrors .prev {
  margin-left: -530px;
}

@media only screen and (min-width: 1280px) {
  #home #video-component .video-wrapper {
    max-width: 540px;
  }

  #home #video-component .mirrors .next,
  #home #video-component .mirrors .prev {
    width: 500px;
  }

  #home #video-component .mirrors .thumbnail {
    height: 282px;
  }
}

#home #video-component .video-info {
  margin-top: 76px;
  opacity: 0;
  display: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  -moz-transition: opacity 0.3s ease, visibility 0.3s ease;
}

#home #video-component .dots {
  margin-top: 24px;
}

/* END Video */

/* START Footer */
#footer-f1 h2 {
  font-family: Gochi Hand;
  font-size: 32px !important;
}

#view-footer {
  --footer-background-image: url(https://cmsv2-shared-assets.apptegy.net/Schools/Portsmouth-Public-Schools-5096/images/FooterBG.svg);
  --footer-image-opacity: 0.1;
}

#cms-footer::after {
  background-size: contain;
  background-repeat: repeat;
}

#view-footer #footer-f1 .row .footer-columns,
#view-footer #footer-f1 .footer-column-last {
  box-sizing: border-box;
  border-left: 2px solid var(--separator-color);
  padding-inline: max(4%, 20px);
  margin-bottom: 50px;
}

/* 4 Columns 

#view-footer #footer-f1 .footer-columns:nth-child(3) {
  border-right: 2px solid var(--separator-color);
} 

#view-footer #footer-f1 .footer-column-main,
#view-footer #footer-f1 .footer-column-last {
  padding-inline: max(4%, 20px);
}
*/

@media only screen and (max-width: 960px) {

  #view-footer #footer-f1 .footer-column-main,
  #view-footer #footer-f1 .footer-columns,
  #view-footer #footer-f1 .footer-column-last {
    padding-inline: unset;
    border: 0px !important;
  }

  #view-footer #footer-f1 .footer-columns {
    margin-bottom: 25px !important;
  }
}

/* END Footer */

/* START Paper background */
#home {
  background-image: url('https://cmsv2-shared-assets.apptegy.net/Schools/Portsmouth-Public-Schools-5096/images/PaperBG-v2.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

#home .view-container,
#home .view-container .homepage-component,
#home #news-n6 {
  background: transparent;
}

/* END Paper background */

/* START Vertical gradient line */
@media only screen and (min-width: 600px) {
  .gradient-line {
    position: fixed;
    top: 0;
    left: 15px;
    width: 7px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    pointer-events: none;
    display: none;
  }
}

#view-footer {
  position: relative;
  z-index: 1;
}

/* END Vertical gradient line */

/* Hide Explore Menu Start */

#explore-button,
.bar-nav--drawer-element.mobile-element:has(#explore-header) {
  display: none;
}

/* Hide Explore Menu End */

/* Hide Staff directory images */

#staff .staff-avatar {
  display: none !important;
}

/* Staff directory images END*/
/* Hiding News Article Date*/
.article-date {
  display: none;
}

#news-article .article-info p.date {
  display: none;
}

/* END Hiding News Article Date*/
/* START Mobile Header Fix */
@media only screen and (max-width: 1023px) {
  #cms-header #h1 .left {
    height: auto;
    padding: 48px 0;
    margin: 0;
  }

  #cms-header #h1 .left .school-info,
  #cms-header #h1 .right,
  #cms-header .mobile-header .left-icon .menu-field {
    display: none;
  }

  #cms-header .search-translate-buttons .menu-field {
    display: block;
    color: var(--mobile-menu-text-color) !important;
    font-weight: 400;
  }

  #cms-header #languagebutton svg path,
  #cms-header #explore-header-collapsible svg path {
    fill: var(--mobile-menu-text-color) !important;
  }
}

/* END Mobile Header Fix */