<!DOCTYPE html>
<html lang="en"> <!-- Set this to the main language of your site -->
<head>
    <meta charset="utf-8">

    <title>{{title}}</title>

    <!-- Enter a brief description of your page -->
    <meta name="description" content="">

    <!-- Define a viewport to mobile devices to use - telling the browser to assume that the page is as wide as the device (width=device-width,
    and setting the initial page zoom level to be 1 (initial-scale=1.0), and fixing width=device-width for iOS9 (shtink-to-fit=no) -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">

    <!-- Add normalize.css which enables browsers to render all elements more consistently and in line with modern standards as it only targets particular styles that need normalizing -->
    {{!-- <link href="css/normalize.css" rel="stylesheet" media="all"> --}}
    <!-- For legacy support (IE 6/7, Firefox < 4, and Safari < 5) use normalize-legacy.css instead -->
    <!--<link href="css/normalize-legacy.css" rel="stylesheet" media="all">-->

    <!-- Include the site stylesheet -->
    {{#if googleFont}}
        <link href="https://fonts.googleapis.com/css?family={{googleFont}}:400,500,600,700,800,900&display=swap" rel="stylesheet">
      {{/if}}
    {{#if css }}
    {{#each css}}
    <link href="{{this}}" rel="stylesheet" media="all">
    {{/each}}
    
    {{/if}}
    <style>
      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      body {
        background: transparent;
        font-family:{{#if fontFamily}} {{{fontFamily}}}{{else}}"Lato", "Helvetica Neue", sans-serif{{/if}};
        overflow: hidden;
        /* width: {{width}}px;
        height: {{height}}px; */
        width: 100vw;
        height: 100vh;
      }
      .Image {
  width: 100%;
  height: 100%;
  background-size: cover;  
  background-repeat: no-repeat;
  background-origin: center;
}

.Main {
  background: {{#if imageUrl}} transparent {{else}}{{background}}{{/if}};
  position: relative;
  width: 100%;
  height: 100%;
}

.Inner {
  background: {{#if imageUrl}} transparent {{else}} {{ background }}{{/if}};
  color: {{color}};
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
:root {
    --split-width: 7.5%;
    --split-absolute-width: calc((100% + var(--split-width)) / 2);
}

.social {
  display: flex;
  height: 100%;
}

.social--diagonal-split .content {
    clip-path: polygon(0 0, 86% 0%, 100% 100%, 0% 100%)
}

.social--diagonal-split .content-inner {
    padding-right: 16%;
}

.social--diagonal-reverse-split .content {
    clip-path: polygon(0 0, 100% 0%, 86% 100%, 0% 100%)
}

.social--diagonal-reverse-split .content-inner {
    padding-right: 16%;
}

.content {
  background: white;
  display: flex;
  flex-direction: column;
  position:absolute;
  width: 50%;
  height: 100%;
}

.social--diagonal-split .content, .social--diagonal-reverse-split .content {
  width: var(--split-absolute-width);
}

.content-inner {
  flex-grow: 1;
  padding: 40px;
  padding-bottom: 20px;
  overflow: hidden;
}

.logo {
    height: 72px;
    margin-bottom: 8px;
}

.image {
  background: lightgray;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 50%;
  margin-left: 50%;

}

.social--diagonal-split .image, .social--diagonal-reverse-split .image {
  width: var(--split-absolute-width);
  margin-left: calc(100% - var(--split-absolute-width));
}


.truncate {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}


h1 {
  font-size: 64px;
  margin-top: 16px;
  margin-bottom: 16px;
  font-weight: 800;
  -webkit-line-clamp: 6;
}

.social--has-logo h1 {
    -webkit-line-clamp: 5;
}

.social--has-subtitle h1 {
    -webkit-line-clamp: 3;
}

.social--has-subtitle.social--has-logo h1 {
  font-size: 56px;
  -webkit-line-clamp: 3;
}

h2 {
  font-size: 40px;
  -webkit-line-clamp: 4;
  margin-top: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.social--has-logo h2 {
  -webkit-line-clamp: 3;
}

.footer {
    opacity: 0.75;
  font-size: 32px;
    font-weight: 800;
  padding: 40px;
  padding-top: 0px;
}
    </style>
</head>
<body>
  <div class="Main">
        {{#if imageUrl}}
          <div class="Image" style="background-image: {{#if backgroundImageOverlay}}linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%), {{/if}}url('{{imageUrl}}');"></div>
        {{/if}}

        <div class="Inner">
          <div class="social{{#if split}} social--{{split}}-split{{/if}}{{#if logo}} social--has-logo{{/if}}{{#if subtitle}} social--has-subtitle{{/if}}">
  
  <div class="content ">
      <div class="content-inner">
        {{#if logo}}<div><img class="logo" src="{{logo}}" /></div>{{/if}}
        <h1 class="truncate">{{title}}</h1>
        <h2 class="truncate">{{subtitle}}</h2>
      </div>
      
      <div class="footer">
        {{#unless includeWatermark}}{{footer}}{{/unless}}
        {{#if watermarkUrl}}Generated by <span class="Watermark-logo">{{watermarkUrl}}</span>{{/if}}
        {{#if watermark}}{{watermark}}{{/if}}
      </div>
  </div>

  {{#if imageUrl}}<div class="image" style="background-image: url('{{imageUrl}}');"></div>{{/if}}
</div> 
        </div>
      </div>
      </body>
</html>