/* Disable scrolling on the background */
body.ds-no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Closing Animation Class */
.ds-portal-overlay.ds-portal-closing {
  animation: dsPortalFadeOut 0.4s ease forwards !important;
}

.ds-portal-overlay.ds-portal-closing .ds-portal-container {
  animation: dsPortalScaleDown 0.4s ease forwards !important;
}

/* Overlay Background */
.ds-portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none; /* Controlled by JS */
  z-index: 999999;
  align-items: center;
  justify-content: center;
  animation: dsPortalFadeIn 0.4s ease forwards;
}

/* Main Modal Box */
.ds-portal-container {
  position: relative;
  width: 95%;
  max-width: 1100px;
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: hidden;
  animation: dsPortalScaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.ds-portal-close {
  position: absolute;
  top: 15px;
  right: auto;
  font-size: 80px;
  line-height: 82px;
  color: #FFEB3B;
  background: none;
  border: none!important;
  cursor: pointer;
  z-index: 100;
  left: 15px;
  padding: 0;
  width: 50px;
  border-radius: 10px;
}
.ds-portal-close:hover {
background: transparent;
color: #1a1a1a;
}
.ds-portal-flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 10px;
  justify-content: center;
}

.ds-portal-side {
  flex: 1;
  min-width: 320px;
  padding: 50px 30px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
	transition: transform 0.3s ease-in-out;
}

.ds-portal-side.ds-portal-red .ds-portal-title {
font-size: 1.9em;
}

/* Unique Colors without Variables */
.ds-portal-red {
  border-radius: 20px;
	  transform: scale(1);
  margin-left: 0;

background: 
    linear-gradient(
        180deg, 
        rgba(195, 35, 30, 0.8) 0%, 
        rgba(195, 35, 30, 0.8) 25%, 
        rgba(195, 35, 30, 1) 50%, 
        rgba(195, 35, 30, 1) 75%, 
        rgba(195, 35, 30, 1) 100%
    ), 
    url(https://davidstaughton.com.au/wp-content/uploads/2026/03/speaker-background.jpg) 
    center top / cover no-repeat;
}
.ds-portal-red:hover {
transform: scale(1);
transition: transform 0.3s ease-in-out;
}
.ds-portal-side:hover {
box-shadow: inset 0 0 25px 5px rgba(255, 255, 255, 0.5);
transition: transform 0.2s ease-in-out;
}
.ds-portal-blue {
	  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(39, 86, 138, 0.8) 0%,
      rgba(39, 86, 138, 0.8) 25%,
      rgba(39, 86, 138, 1) 50%,
      rgba(39, 86, 138, 1) 75%,
      rgba(39, 86, 138, 1) 100%
    ),
    url(https://davidstaughton.com.au/wp-content/uploads/2026/03/consulting-background.jpg)
      center top / cover no-repeat;

  border-radius: 20px;
}

.ds-portal-top-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.ds-portal-image {
  max-height: 260px;
  width: auto;
  margin-bottom: -15px;
}

.ds-portal-name {
  font-size: 1.4rem;
  margin: 0 0 10px;
  letter-spacing: 1px;
  color: #fff;
}

.ds-portal-title {
  font-size: 3.1rem;
  color: #ffeb3b; /* International Speaker Yellow */
  margin-bottom: 15px;
  line-height: 48px;
	font-weight:bold;
}

.ds-portal-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto 30px;
  max-width: 350px;
  opacity: 0.9;
  text-align: center;
}

.ds-portal-link {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #ffffff;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.ds-portal-link:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.ds-portal-red .ds-portal-link:hover {
  color: #e53935 !important;
}
.ds-portal-blue .ds-portal-link:hover {
  color: #2a5a8e !important;
}

/* Animations */
@keyframes dsPortalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dsPortalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Keyframes for Closing */
@keyframes dsPortalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes dsPortalScaleDown {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@media (max-width: 968px) {
  .ds-portal-title {
    font-size: 2.8rem;
  }
}
@media (max-width: 768px) {
  .ds-portal-title {
    font-size: 2.1rem;
  }
  .ds-portal-flex {
    flex-wrap: nowrap;
  }
  .ds-portal-side {
    padding: 40px 15px;
  }
	.ds-portal-container {
overflow: scroll;
		top: 0;
position: absolute;
left: 0;
right: 0;
padding: 40px 0;
width: 100%;
}
.ds-portal-overlay {
height: 100vh;
overflow: scroll;
}
.ds-portal-flex {
align-content: center;
}
.
ds-portal-flex {
overflow: scroll;
}
	
}

.ds-portal-close {
  top: 0;
  left: 15px;
}

@media (max-width: 630px) {
  .ds-portal-flex {
    flex-wrap: wrap;
  }
  .ds-portal-flex {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
	.ds-portal-side {
padding: 20px 20px;
}
	
	
  .ds-portal-side {
    padding: 40px 20px;
    position: relative;
  }
  .ds-portal-desc {
    margin: 0 0 20px;
    max-width: 100%;
    text-align: left;
    width: 400px;
  }
  .ds-portal-top-label {
    margin-bottom: 10px;
    text-align: left;
  }
  .ds-portal-name {
    text-align: left;
    width: 69%;
    max-width: 100%;
  }
  .ds-portal-title {
    text-align: left;
    width: 432px;
    max-width: 100%;
  }
  .ds-portal-link {
    margin: 0;
  }
  .ds-portal-side {
    flex: none;
    min-width: 0;
    justify-content: flex-start;
    width: 100%;
  }
  .ds-portal-flex {
    width: 100%;
  }
  .ds-portal-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }
  .ds-portal-inner {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: baseline;
  }

  .ds-portal-image {
    margin-bottom: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
  }
  .ds-portal-blue {
    transform: none;
    margin-left: 0;
    margin-top: 10px;
  }
  .ds-portal-link {
    display: block;
    position: relative;
    z-index: 2;
  }
  .ds-portal-close {
    top: 20px;
    left: auto;
    right: 20px;
  }
  .ds-portal-title {
    z-index: 2;
    position: relative;
  }
}