/**
 * NewsProMaxim Indonesia - Additional styles
 * Most styles are in style.css for simplicity and performance.
 */

/* Ensure custom logo scales properly */
.custom-logo-link img,
.custom-logo {
  max-height: 60px;
  width: auto;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--npm-primary);
  outline-offset: 2px;
}

/* Skip link */
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 5px;
  top: 5px;
  width: auto;
  z-index: 100000;
  background: #fff;
  padding: 10px 15px;
  color: var(--npm-primary);
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Gutenberg align support in content */
.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.entry-content .alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

/* Clear floats */
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

/* WP Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5em 0;
}

.gallery-item {
  flex: 1 1 30%;
}

/* Embed responsive */
.wp-block-embed {
  margin: 1.5em 0;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
