/*
Copyright: (c) 2025 Fernando Kylas
Requires PHP: 7.4
Tested up to: 6.6
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Theme Name: Kalypto
Author: Fernando Kylas
Theme URI: https://fernandokylas.com/resources/kalypto-wordpress-theme/
Author URI: https://fernandokylas.com
Tags: blog, one-column, custom-logo, editor-style
Description:  A feather-light, fully vanilla, custom WordPress theme for Elementor, developed by Fernando Kylas
Version:      1.0.1
License: GPLv2 or later
Text Domain: kalypto
*/

/* Minimal reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Ensure main container has no extra spacing */
.site-main,
main {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  line-height: 1.5;
}

/* Elementor Text Editor widget fix */
/* This fix will remove the spacing you normally get on the bottom of your text */
p {
  display: block;
  margin-block-start: 0px;
  margin-block-end: 0px;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}

ul,
ol {
  margin: 0 0 1em 1.2em;
  padding: 0;
}

li {
  margin: 0.35em 0;
}

.elementor-widget-text-editor p:last-child {
  margin: 0px;
}

/* Accessibility and WordPress core utility classes */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  white-space: normal;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption img {
  display: block;
  height: auto;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5em;
}

.gallery-caption {
  font-size: 0.875rem;
  color: #666;
}

.bypostauthor {
  font-weight: inherit;
}

.sticky {
  position: relative;
}

.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}