.sp-gallery-protected-gallery {
  display: flex;
  flex-wrap: wrap; /* Enable wrapping so h3 sits on its own row */
  justify-content: center;
  column-gap: 20px;
}

.sp-gallery-protected-gallery-login,
.sp-gallery-protected-gallery-password {
  /* //background-color: #eee; */
  border-radius: 10px;
  padding: 50px;
  align-content: center;
  width: 100%; /* Ensure child div takes full width (optional) */
  max-width: 50%; /* Optional: Set a max width for the child */
}

.sp-gallery-protected-gallery-password p,
.sp-gallery-protected-gallery-login p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

.sp-gallery-protected-gallery-password input[type='password'],
.sp-gallery-protected-gallery-login input[type='text'],
.sp-gallery-protected-gallery-login input[type='password'] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
}

.sp-gallery-protected-gallery-password input[type='submit'],
.sp-gallery-protected-gallery-login input[type='submit'] {
  background-color: var(--wp--preset--color--primary, #0073aa); /* Fallback to blue if theme color is unavailable */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 10px;
}

.sp-gallery-protected-gallery-password input[type='submit']:hover,
.sp-gallery-protected-gallery-login input[type='submit']:hover {
  background-color: var(--wp--preset--color--primary-hover, #005e8b); /* Fallback hover color */
}

.sp-gallery-protected-gallery-login label {
  font-weight: bold;
  color: #333;
}

.sp-gallery-protected-gallery-login a {
  color: #0073aa;
  text-decoration: none;
}

.sp-gallery-protected-gallery-login a:hover {
  text-decoration: underline;
}

.sp-gallery-protected-gallery-login .login-remember label {
  font-size: 14px;
  color: #555;
}

.sp-gallery-protected-gallery-login .login-submit input[type='submit'] {
  background-color: #0073aa;
}

.sp-gallery-protected-gallery h3 {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}
.sp-gallery-image-icon:hover polyline {
  stroke: #ee2e4f;
}

.sp-gallery-proofing-icon:hover path {
  stroke: #fff;
}

@media (max-width: 768px) {
  .sp-gallery-protected-gallery {
    grid-template-columns: 1fr;
  }
}
