.port-base {
  display: flex;
  flex-flow: column;
  width: 100%;
  min-height: calc(100vh - 60px);
  h1 {
    font-weight: normal;
  }
  h2 {
    padding: 20px;
    margin: 0px;
  }
}
.port-grid {
  display: grid;
  padding: 20px;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, 300px);
  grid-auto-rows: 300px;
  /*align-items: center;
  justify-content: center;*/
  .holdersq {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--oldred);
    border-radius: 10px;
    /*max-width: 300px;
    max-height: 300px;*/
    transition: all 0.2s;
  }
  .holderrec {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--oldred);
    border-radius: 10px;
    /*min-width: 600px;
    max-width: 600px;
    max-height: 300px;*/
    transition: all 0.2s;
    grid-column: span 2;
  }
}
.holdersq:hover {
  border: 4px double var(--hhover);
  transition: all 0.2s;
}
.holderrec:hover {
  border: 4px double var(--hhover);
  transition: all 0.2s;
}
.port-container {
  width: 100%;
  height: 600px;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: center;
  position: relative;
  .hlink {
    font-size: 32px;
  }
}
.port-section-out {
  position: relative;
  width: 100%;
  height: calc(100% - 64px);
  border: 2px solid var(--oldred);
  border-radius: 50px;
  background-color: var(--headdl);
  transition: all 0.2s;
}
.port-section-in {
  position: relative;
  left: 32px;
  top: -32px;
  width: calc(100% - 64px);
  height: calc(100% + 64px);
  border: 2px solid var(--invertedtext);
  border-radius: 50px;
  transition: all 0.2s;
}
.port-section-out:hover {
  width: 100%;
  height: 100%; 
  transition: all 0.2s;
  border: 2px solid var(--oldred);
  background-color: transparent;
  .port-section-in {
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    transition: all 0.2s;
    border-radius: 48px;
    border: 2px solid var(--hhover);
    background-color: var(--headdl);
  }
  .rt-cont, .rb-cont {
    right: -25px;
    height: 350px;
    transition: all 0.2s;
  }
  .rt-cont {
    top: -25px
  }
  .rb-cont {
    bottom: -25px
  }
  .md-cont {
    transform: scale(1.1);
    transition: all 0.2s;
  }
}
.ps-gallery {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  img {
    width: 90%;
    height: auto;
  }
}
.sep1, .sep2, .sep3 .sep4 {
  border-radius: 48px;
  border: 2px solid transparent !important;
}
.port-content {
  max-width: 740px;
  margin: 10px;
}
.sep1, .sep2 {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}
.sep1 {
  align-items: end;
  justify-content: center;
  flex-flow: column;
}
.sep2 {
  align-items: start;
  justify-content: center;
}
.sep3 {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.sep4 {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.rt-cont, .rb-cont {
  position: absolute;
  right: -50px;
  width: auto;
  height: 300px;
  transition: all 0.2s;
}
.rb-cont {
  bottom: -50px;
}
.rt-cont {
  top: -50px;
}
.md-cont {
  transition: all 0.2s;
}
.pf-dialog {
  width: 90%;
  height: 90%;
  z-index: 1;
  border-radius: 10px;
  border: 2px solid var(--oldred);
  backdrop-filter: blur(10px);
  background-color: var(--headdltr);
  h2 {
    padding: 0;
  }
}
.pf-dialog .pswp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
}
.pf-dialog::backdrop {
    background-color: var(--headdltr);
    backdrop-filter: blur(2px);
}
.pf-content {
  p {
    max-width: 100%;
    width: 100%;
    height: 100%;
    color: var(--bwtext);
  }
}
/*.obj-cont {
  display: flex;
  flex-flow: column;
  align-items: center;
}*/
.obj-cont object {
  position: absolute;
  top: 52px;
  left: 0;
  width: 100%;
  height: calc(100% - 52px);
  overscroll-behavior: none;
  z-index: 0;
}
#obj {
  background-color: transparent !important;
}
.img200px {
  width: auto;
  height: 200px;
}
@media screen and (max-width: 780px){
  .md-cont {
    width: 250px;
    height: auto;
  }
  .port-container {
    height: 720px;
  }
  .port-section-out, .port-section-in {
    border-radius: 30px;
    /*img {
      width: auto;
      height: 200px;
    }*/
  }
  .port-section-out:hover {
    border-radius: 30px;
    .port-section-in {
      border-radius: 28px;
    }
    .rt-cont {
      top: auto;
    }
    .rt-cont, .rb-cont {
      width: auto;
      height: 220px;
    }
  }
  .port-section-out {
    height: calc(100% - 32px);
  }
  .port-section-in {
    top: -16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% + 32px);
  }
  h4 {
    font-size: 36px;
  }
  .sep2, .sep3, .sep4 {
    height: 50%;
    border-radius: 28px;
  }
  .rt-cont {
    top: auto;
    bottom: -25px;
    right: -25px;
  }
  .rb-cont {
    bottom: -25px;
    left: -25px;
  }
  .rt-cont, .rb-cont {
    width: auto;
    height: 180px;
  }
  .pf-dialog {
    max-width: 100%;
    max-height: 100%;
  }
  :modal {
    width: 100%;
    height: 100%;
  }
  .img200px {
    width: 200px;
    height: auto;
  }
}
